2017-07-26 82 views
0

我最近碰到了離子3從2.我可以建立我的iOS應用程序,但離子​​服務現在失敗,下面的錯誤。WebpackJsonp在Ionic 3更新後丟失

我還沒來得及建於iOS,我不得不手動更換main.prod.ts和main.dev.ts與main.ts

你需要任何更多的信息,能夠幫助我們嗎?

Close 
Runtime Error 
webpackJsonp is not defined 
Stack 


ReferenceError: webpackJsonp is not defined 
    at http://localhost:8100/build/main.js:1:1 
Ionic Framework: 2.0.0-rc.3 
Ionic Native: 2.2.3 
Ionic App Scripts: 2.0.2 
Angular Core: 2.1.1 
Angular Compiler CLI: 2.1.1 
Node: 6.9.2 
OS Platform: macOS Sierra 
Navigator Platform: MacIntel 
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 


TypeError: ctx.sourceFile.getLineEndOfPosition is not a function 
    at isEntireLine (/Users/me/Documents/Typescript/app/node_modules/tslint/lib/rules/noUnusedVariableRule.js:217:32) 
    at removeAll (/Users/me/Documents/Typescript/app/node_modules/tslint/lib/rules/noUnusedVariableRule.js:209:17) 
    at /Users/me/Documents/Typescript/app/node_modules/tslint/lib/rules/noUnusedVariableRule.js:164:13 
    at /Users/me/Documents/Typescript/app/node_modules/tslint/lib/rules/noUnusedVariableRule.js:285:23 
    at visitEachNode (/Users/me/Documents/Typescript/app/node_modules/typescript/lib/typescript.js:8338:30) 
    at Object.forEachChild (/Users/me/Documents/Typescript/app/node_modules/typescript/lib/typescript.js:8498:24) 
    at forEachImport (/Users/me/Documents/Typescript/app/node_modules/tslint/lib/rules/noUnusedVariableRule.js:283:15) 
    at addImportSpecifierFailures (/Users/me/Documents/Typescript/app/node_modules/tslint/lib/rules/noUnusedVariableRule.js:139:5) 
    at walk (/Users/me/Documents/Typescript/app/node_modules/tslint/lib/rules/noUnusedVariableRule.js:130:9) 
    at /Users/me/Documents/Typescript/app/node_modules/tslint/lib/rules/noUnusedVariableRule.js:38:75 

回答