2016-11-29 96 views
1

我試圖建立我的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" 
    ] 
} 
+0

你在你的設置中使用打字稿或JavaScript? – hypery2k

+0

typescript 1.8.10 –

+0

可以發佈你的tsconfig.json嗎? – hypery2k

回答

0

我不得不刪除hooksbin並重新安裝ios平臺。