I relatively new to Angular and trying to use chrome dev tools for debugging. However I'm stuck with the problem that only the lazy loading modules show up in file tree (sources tab of chrome dev tools), but none of the eager loading modules. In addition I get quite a few 404s in the server console, like
"GET /runtime.js.map" Error (404): "Not found"
"GET /es2015-polyfills.js.map" Error (404): "Not found"
"GET /polyfills.js.map" Error (404): "Not found"
"GET /main.js.map" Error (404): "Not found"
Not sure if those are related.
Looks like the sourcepaths comments in the js files are correct (e.g. //# sourceMappingURL=main.js.map
). However as its an app in transition from native js to Angular there are two folders with uglyfied js files (and maps). Nevertheless it works for the lazy loading modules, but not the "normal" eager loading ones.
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:/*": "${webRoot}/*"
}
Any hint/info that helps me in fixing this issue would be highly welcome. If additional info on the setup is required, pls. come back to me.
Angular CLI version:
Angular CLI: 8.3.23
Node: 10.16.3
OS: linux x64
Angular: undefined
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.803.23 (cli-only)
@angular-devkit/core 8.3.23 (cli-only)
@angular-devkit/schematics 8.3.23 (cli-only)
@schematics/angular 8.3.23 (cli-only)
@schematics/update 0.803.23 (cli-only)
rxjs 6.3.3