2016-11-01 40 views
0

Ionic v2無法爲IOS編譯。Ionic v2使用ionic-app-scripts構建ios錯誤

得到錯誤

11 silly lifecycle [email protected]~build: Args: [ '-c', 'ionic-app-scripts build' ] 
12 silly lifecycle [email protected]~build: Returned: code: 1 signal: null 
13 info lifecycle [email protected]~build: Failed to exec build script 
14 verbose stack Error: [email protected] build: `ionic-app-scripts build` 
14 verbose stack Exit status 1 

[12:20:56] Error: Cannot determine the module for component CustomNavbar! 
[12:20:56] ngc failed 
[12:20:56] ionic-app-script task: "build" 
[12:20:56] Error: Error 

error Darwin 15.6.0 
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" 
19 error node v7.0.0 
20 error npm v3.10.8 
21 error code ELIFECYCLE 
22 error [email protected] build: `ionic-app-scripts build` 
22 error Exit status 1 
23 error Failed at the [email protected] build script 'ionic-app-scripts build'. 
23 error Make sure you have the latest version of node.js and npm installed. 
23 error If you do, this is most likely a problem with the tr package, 
23 error not with npm itself. 
23 error Tell the author that this fails on your system: 
23 error  ionic-app-scripts build 
23 error You can get information on how to open an issue for this project with: 
23 error  npm bugs tr 
23 error Or if that isn't available, you can get their info via: 
23 error  npm owner ls tr 
23 error There is likely additional logging output above. 
24 verbose exit [ 1, true ] 

離子服務工作正常,顯示預覽應用 但不能夠建立適用於iOS。

+0

您能分享您的代碼嗎? – mahmoudismail

回答

0

刪除不必要的文件夾並導出類「CustomNavbar」 來解決問題。

錯誤:無法確定組件CustomNavbar的模塊!

+0

請您分享您的代碼以獲得有關您問題的額外信息? – mahmoudismail