When launching an Angular application in dev mode using ng serve
, source maps are supposed to load instantly on web browsers. If "sourceMap": true
is configured, as I've gathered from my online research.
Most developers don't seem to have any issues with this functionality.
However, I'm experiencing difficulties because my Firefox browser doesn't display the TypeScript equivalents of the JavaScript generated by Angular.
I am currently working with Angular 14.
https://i.sstatic.net/j9Xlv.png
Did I forget to set a parameter somewhere?
Most of the code below was automatically generated by Angular plugins. However, there may be some inaccuracies or missing configurations.
Can anyone provide assistance?
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"skipLibCheck": true,
"lib": [
"es2018",
"dom"
]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
...
package.json
{
"name": "etude",
"version": "0.0.0",
"scripts": {
...