Angular-CLI-Based-Template: No source maps when debugging server-side JavaScript. #255

Closed
opened 2025-08-09 17:15:35 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @astegmaier on 12/21/2017

First of all, I wanted to say thanks to @SteveSanderson for the new angular-cli-based template. It looks awesome, and I can't wait for it to be released for real.

I wanted to report an issue I'm seeing in an effort to help work out the kinks. When I enable server-side rendering using the instructions in the docs, and attempt to debug the pre-rendered JavaScript (following instructions here), I find that the chrome debugger only sees the minified javascript instead of the clean source typescript:

chrome debugger

I tried to create a clean, simplified repro of the issue in this repository: https://github.com/astegmaier/dotnet-angular-cli-ssr-debug-test

Looking at the ClientApp/dist-server folder I don't see any .map files, which might be related to the cause.

Am I doing something wrong? Or is this an issue with the template?

*Originally created by @astegmaier on 12/21/2017* First of all, I wanted to say thanks to @SteveSanderson for the new angular-cli-based template. It looks awesome, and I can't wait for it to be released for real. I wanted to report an issue I'm seeing in an effort to help work out the kinks. When I enable server-side rendering using the [instructions in the docs](https://docs.microsoft.com/en-us/aspnet/core/spa/angular?tabs=visual-studio#server-side-rendering), and attempt to debug the pre-rendered JavaScript (following [instructions here](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices#debugging-your-javascripttypescript-code-when-it-runs-on-the-server)), I find that the chrome debugger only sees the minified javascript instead of the clean source typescript: ![chrome debugger](https://github.com/astegmaier/dotnet-angular-cli-ssr-debug-test/raw/master/Repro.png) I tried to create a clean, simplified repro of the issue in this repository: https://github.com/astegmaier/dotnet-angular-cli-ssr-debug-test Looking at the `ClientApp/dist-server` folder I don't see any `.map` files, which might be related to the cause. Am I doing something wrong? Or is this an issue with the template?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#255
No description provided.