我试图建立我的iOS应用程序,但我得到这个错误:Nativescript IOS建立失败
Successfully prepared plugin tns-core-modules for ios.
Processing node_modules failed. TypeError: str.replace is not a function
我不明白,为什么在构建适用于iOS(机器人正常工作)才会出现这种情况。 我已经尝试添加/删除平台,更新nativescript等 下面是有关运行版本
"nativescript": {
"id": "com.xxxxx.app",
"tns-android": {
"version": "2.4.0"
},
"tns-ios": {
"version": "2.4.0"
}
},
"dependencies": {
"tns-core-modules": "^2.4.0"
},
我的打字稿的版本是1.8我的package.json部分。 这可能是什么原因? 这里是我的tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": false,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true
},
"exclude": [
"node_modules",
"platforms"
]
}
你在你的设置中使用打字稿或JavaScript? – hypery2k
typescript 1.8.10 –
可以发布你的tsconfig.json吗? – hypery2k