Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't debug in Edge using Aurelia CLI build

I'm using ASP.NET Core with an Aurelia CLI build (TypeScript, SASS).

I've noticed that I can't debug my TypeScript files in Edge at all - the browser says it is unable to find the source maps, even though the locations are correct and the source maps exist. I can't see any of my src files in the source file browser.

There is no issue with Chrome or Firefox, they just work.

I tested a vanilla HTML / TypeScript project which is fine in Edge for debugging, so it must be something to do with the way the files are packaged in the Aurelia build system.

The specific error I get is along the lines of:

"Could not locate file:///XXXX specified in source map http://localhost:16377/scripts/app-bundle.js.map"

Is this a known issue? Is there any fix for it?

like image 413
Sam Avatar asked May 12 '26 17:05

Sam


1 Answers

This is definitely an issue with the CLI and how it is producing sourcemaps. It looks like HTML files are having their path in the sourcemap file written as the full drive path on the machine, while the content of the file actually isn't being written out at all.

I've created an issue on our CLI repo: https://github.com/aurelia/cli/issues/409

like image 143
Ashley Grant Avatar answered May 18 '26 23:05

Ashley Grant