gpt4 book ai didi

typescript - Nativescript/TypeScript 错误 - 错误 TS5053 : Option 'sourceMap' cannot be specified with option 'inlineSourceMap'

转载 作者:搜寻专家 更新时间:2023-10-30 20:57:53 24 4
gpt4 key购买 nike

{
"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 。我收到一个错误,我不明白我为什么会收到。有什么想法吗?

这是我在 vscode 中的调试控制台中得到的错误

[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.

最佳答案

dashman 的回答是从 tsconfig.json 中删除了源映射选项,这就是修复它的原因。

关于typescript - Nativescript/TypeScript 错误 - 错误 TS5053 : Option 'sourceMap' cannot be specified with option 'inlineSourceMap' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42041056/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com