source maps not working when debugging in node for templates with server-side prerendering #358

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

Originally created by @derekdavenport on 10/17/2017

If you use dotnet new to create a new project with server-side prerendering (react-redux and angular), then follow the instructions here, then open Chrome Devtools for Node.js, there is no "webpack:// entry in the sidebar".

image

The transpiled js is listed under "(no domain)", and debugging that does work.

Trying to set breakpoints in Visual Studio 2017 says

The breakpoint will not currently be hit. No symbols have been loaded for this document.

What do I need to do to be able to debug/set break points in the TypeScript in VS or Devtools? I'm using Node 8.7

*Originally created by @derekdavenport on 10/17/2017* If you use `dotnet new` to create a new project with server-side prerendering (react-redux and angular), then [follow the instructions here](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices#debugging-your-javascripttypescript-code-when-it-runs-on-the-server), then open Chrome Devtools for Node.js, there is no "`webpack://` entry in the sidebar". ![image](https://user-images.githubusercontent.com/11248772/31645769-d73d06d2-b2cb-11e7-98cd-98b5b8ef4a69.png) The transpiled js is listed under "(no domain)", and debugging that does work. Trying to set breakpoints in Visual Studio 2017 says > The breakpoint will not currently be hit. No symbols have been loaded for this document. What do I need to do to be able to debug/set break points in the TypeScript in VS or Devtools? I'm using Node 8.7
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#358
No description provided.