angular - Undantagsspår i Firefox-konsolen som inte använder källkartor
Jag har ett Angular/TS-projekt med följande tsconfig.json-fil:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
Vid ett undantag i min kod skrivs spårningen i webbläsarens utvecklarverktygskonsol.
Jag kan lägga till brytpunkter i mina TS-filer i Firefox och Chrome.
Problem :
Med Chrome är allt OK. Spåret beskriver felet och skickar mig till rätt fil.
Men med Firefox länkar inte spåret mig till TS-filen, utan till polyfills.bundle.js istället.
ERROR Error: "[object Object]"
resolvePromisehttp://localhost/app/polyfills.bundle.js:6856:31resolvePromisehttp://localhost/app/polyfills.bundle.js:6813:17scheduleResolveOrRejecthttp://localhost/app/polyfills.bundle.js:6915:17invokeTaskhttp://localhost/app/polyfills.bundle.js:6463:17onInvokeTaskhttp://localhost/app/vendor.bundle.js:68464:24invokeTaskhttp://localhost/app/polyfills.bundle.js:6462:17runTaskhttp://localhost/app/polyfills.bundle.js:6230:28drainMicroTaskQueuehttp://localhost/app/polyfills.bundle.js:6637:25invokeTaskhttp://localhost/app/polyfills.bundle.js:6542:21invokeTaskhttp://localhost/app/polyfills.bundle.js:7582:9globalZoneAwareCallbackhttp://localhost/app/polyfills.bundle.js:7608:17
Egenskapen Firefox devtools.source-map.locations.enabled är inställd på true.
All hjälp skulle uppskattas.