2017-10-28 8 views
0

이온이 빌드 될 때마다이 오류가 계속 발생합니다. --prod. 그것은 이온 서빙 및 이온 실행과 잘 작동합니다. 이온 빌드도 괜찮습니다.Cant는 -prod에서 이온 2 앱을 만드는 것처럼 보입니다

Error: Cannot determine the module for class SupplierChequeModalPage in 
C:/wamp/www/pos/src/pages/supplier-cheque-modal/supplier-cheque 
-modal.ts! Add SupplierChequeModalPage to the NgModule to fix it. 
Cannot determine the module for class LetterAvatarDirective in 
C:/wamp/www/pos/src/directives/letter-avatar/letter-avatar.ts! Add Lette 
rAvatarDirective to the NgModule to fix it. 
Cannot determine the module for class ClientChequeModalPage in 
C:/wamp/www/pos/src/pages/client-cheque-modal/client-cheque-modal.ts! Ad 
d ClientChequeModalPage to the NgModule to fix it. 
Cannot determine the module for class CustomerModalPage in 
C:/wamp/www/pos/src/pages/customer-modal/customer-modal.ts! Add CustomerModa 
lPage to the NgModule to fix it. 
Cannot determine the module for class LowStockFilterPipe in 
C:/wamp/www/pos/src/pipes/low-stock-filter/low-stock-filter.ts! Add LowStoc 
kFilterPipe to the NgModule to fix it. 
Cannot determine the module for class DateFilterPipe in 
C:/wamp/www/pos/src/pipes/date-filter/date-filter.ts! Add DateFilterPipe to 
the NgModule to fix it. at Error (native) at syntaxError 
(C:\wamp\www\pos\node_modules\@angular\compiler\bundles\compiler.umd.js: 
1550:34) at analyzeAndValidateNgModules 
(C:\wamp\www\pos\node_modules\@angular\compiler\bundles\compiler.umd.js: 
22948:15) at AotCompiler.compileAll 
(C:\wamp\www\pos\node_modules\@angular\compiler\bundles\compiler.umd.js: 
22721:18) at CodeGenerator.codegen 
(C:\wamp\www\pos\node_modules\@angular\compiler-cli\src\codegen.js:30:14) 
at Function.NgTools_InternalApi_NG_2.codeGen 
(C:\wamp\www\pos\node_modules\@angular\compiler-cli\src\ngtools_api.js: 
61:30)at Object.doCodegen (C:\wamp\www\pos\node_modules\@ionic\app- 
scripts\dist\aot\codegen.js:6:51)at C:\wamp\www\pos\node_modules\@ionic\app- 
scripts\dist\aot\aot-compiler.js:42:30 
+0

'이온 정보'를 실행하고 결과를 pastebin에 붙여넣고 링크를 알려주세요. – KarimMesallam

+0

죄송합니다. 퇴근하셨습니다. –

답변

0

이 문제는 자동 게으른로드 구성 요소, 파이프와 나는 이온 CLI를 사용하여 생성 된 지침 사이에 충돌이

이었다 해결했다. 주 app.module.ts로 가져 왔고 개별 모듈에서도 선언되었습니다.

app.module.ts 파일에서 선언문을 제거하여 문제를 해결했습니다.