Nativescript/TypeScript错误-错误TS5053:无法使用选项"inlineSourceMap"指定选项"sourceMap" [英] Nativescript / TypeScript error - error TS5053: Option 'sourceMap' cannot be specified with option 'inlineSourceMap'
本文介绍了Nativescript/TypeScript错误-错误TS5053:无法使用选项"inlineSourceMap"指定选项"sourceMap"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"watch": true
},
"exclude": [
"node_modules",
"platforms"
],
"compileOnSave": true
}
上面是我的tsconfig.json.我遇到一个错误,我不明白为什么要这么做.有什么想法吗?
Above is my tsconfig.json . I'm getting an error that I'm not understanding why i'm getting. any thoughts?
[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.
推荐答案
达什曼从tsconfig.json中删除源映射选项的答案是对其进行了修复.
dashman's answer of removing the source map option from tsconfig.json was what fixed it.
这篇关于Nativescript/TypeScript错误-错误TS5053:无法使用选项"inlineSourceMap"指定选项"sourceMap"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文