Búsqueda de sitios web

visual studio code - Nativescript/TypeScript error - error TS5053: La opción 'sourceMap' no se puede especificar con la opción 'inlineSourceMap'


{
"compilerOptions": {
    "module": "commonjs",
    "target": "es5",
    "sourceMap": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "noEmitHelpers": true,
    "noEmitOnError": true,
    "watch": true
},
"exclude": [
    "node_modules",
    "platforms"
],
"compileOnSave": true
}

Arriba está mi tsconfig.json. Estoy recibiendo un error que no entiendo por qué lo estoy recibiendo. ¿Alguna idea?

Aquí están los errores en la consola de depuración en VSCode que estoy obteniendo

[NativeScriptCli] execute: tns --version
[NSDebugAdapter] Using tns CLI v2.5.0 on path 'tns'
[NSDebugAdapter] Running tns command...
[NativeScriptCli] execute: tns debug ios --no-client --watch 
[NSDebugAdapter] Watching the tns CLI output to receive a connection token
Executing before-prepare hook from /Users/USERNAME/Projects/Project-tns/hooks/before-prepare/nativescript-dev-sass.js
Executing before-prepare hook from /Users/USERNAME/Projects/Project-tns/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.2.0
error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'.
7:34:42 AM - Compilation complete. Watching for file changes.

Respuesta #1

La respuesta de dashman de eliminar la opción de mapa de origen de tsconfig.json fue lo que lo solucionó.

Artículos relacionados