2017-12-30 50 views
1

이온 성 응용 프로그램을 만들 수 있습니다. 내가 iOS 용 생산 버전을 구축하려고 할 때 : 그럼 내가 그것을 만들 수 있어요IONIC iOS를 빌드 할 수 없습니다 - 오류를 표시하는 프로 시저

Error: ./src/app/main.ts Module not found: Error: Can't resolve './app.module.ngfactory' in '/Users/karthikcp/Documents/IONIC/CIS/src/app' resolve './app.module.ngfactory' in '/Users/karthikcp/Documents/IONIC/CIS/src/app' using description file: /Users/karthikcp/Documents/IONIC/CIS/package.json (relative path: ./src/app) Field 'browser' doesn't contain a valid alias configuration after using description file: /Users/karthikcp/Documents/IONIC/CIS/package.json (relative path: ./src/app) using description file: /Users/karthikcp/Documents/IONIC/CIS/package.json (relative path: ./src/app/app.module.ngfactory) no extension Field 'browser' doesn't contain a valid alias configuration /Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration /Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory.ts doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory.json doesn't exist as directory /Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory doesn't exist [/Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory] [/Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory.ts] [/Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory.js] [/Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory.json] [/Users/karthikcp/Documents/IONIC/CIS/src/app/app.module.ngfactory] @ ./src/app/main.ts 2:0-60 at BuildError.Error (native) at new BuildError (/Users/karthikcp/Documents/IONIC/CIS/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28) at callback (/Users/karthikcp/Documents/IONIC/CIS/node_modules/@ionic/app-scripts/dist/webpack.js:121:28) at emitRecords.err (/Users/karthikcp/Documents/IONIC/CIS/node_modules/webpack/lib/Compiler.js:265:13) at Compiler.emitRecords (/Users/karthikcp/Documents/IONIC/CIS/node_modules/webpack/lib/Compiler.js:371:38) at emitAssets.err (/Users/karthikcp/Documents/IONIC/CIS/node_modules/webpack/lib/Compiler.js:258:10) at applyPluginsAsyncSeries1.err (/Users/karthikcp/Documents/IONIC/CIS/node_modules/webpack/lib/Compiler.js:364:12) at next (/Users/karthikcp/Documents/IONIC/CIS/node_modules/tapable/lib/Tapable.js:218:11) at Compiler.compiler.plugin (/Users/karthikcp/Documents/IONIC/CIS/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) at Compiler.applyPluginsAsyncSeries1 (/Users/karthikcp/Documents/IONIC/CIS/node_modules/tapable/lib/Tapable.js:222:13)

--prod를 사용하지 않을 때 나는 최신 이오니아 버전을 사용하고 있습니다 .. :

ionic cordova build ios --prod 

그것은 아래의 오류를 보여줍니다 제발 도와주세요 .. 나는 IONIC에 익숙하다

답변

1

나는 이것을 node_modules,package-lock.json을 삭제해서 해결했다.

"devDependencies": { 
    "@ionic/app-scripts": "nightly", 
    "typescript": "2.4.2" 
    }, 

및 다시 실행

npm install

다음 package.json으로 업데이트