-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build failure for --prod #96
Comments
This should be closed, as it is not an issue with this library. |
@praveenpds do you still have the issue with the latest version |
Fixed :) |
build prod failed: Cannot determine the module for class PdfViewerComponent in prod build not working. i am facing this issue in latest version |
Hi, |
Error is :
D:\web\Code\Mobile\IonicApp>ionic run android --prod
[10:42:29] ionic-app-scripts 1.3.7
[10:42:29] build prod started ...
[10:42:29] clean started ...
[10:42:29] clean finished in less than 1 ms
[10:42:29] copy started ...
[10:42:29] ngc started ...
[10:42:39] ngc finished in 9.83 s
[10:42:39] preprocess started ...
[10:42:39] deeplinks started ...
[10:42:40] deeplinks finished in 530 ms
[10:42:40] optimization started ...
[10:42:41] copy finished in 11.19 s
[10:42:51] optimization finished in 11.64 s
[10:42:51] preprocess finished in 12.17 s
[10:42:51] webpack started ...
[10:43:03] ionic-app-script task: "build"
[10:43:03] Error: ./
/pdfjs-dist/build/pdf.combined.js Module build failed: RangeError: Maximum call stack size/ng2-pdf-viewer/dist/pdf-viewer.component.js 4:0-40 @exceeded at getResolvedSymbol
(D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33244:35) at
isMatchingReference
(D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33300:67) at
getTypeAtFlowArrayMutation
(D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33913:21) at
getTypeAtFlowNode (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33847:32)
at getTypeAtFlowArrayMutation
(D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33914:36) at
getTypeAtFlowNode (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33847:32)
at getTypeAtFlowArrayMutation
(D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33914:36) at
getTypeAtFlowNode (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33847:32)
at getTypeAtFlowArrayMutation
(D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33914:36) at
getTypeAtFlowNode (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33847:32)
@ ./
./src/pages/pdf-viewer/ng-pdf-viewer.component.ngfactory.ts @ ./src/app/app.module.ngfactory.ts @
./src/app/main.ts
Error: ./
/pdfjs-dist/build/pdf.combined.js/ng2-pdf-viewer/dist/pdf-viewer.component.js 4:0-40Module build failed: RangeError: Maximum call stack size exceeded
at getResolvedSymbol (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33244:35)
at isMatchingReference (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33300:67)
at getTypeAtFlowArrayMutation (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33913:21)
at getTypeAtFlowNode (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33847:32)
at getTypeAtFlowArrayMutation (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33914:36)
at getTypeAtFlowNode (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33847:32)
at getTypeAtFlowArrayMutation (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33914:36)
at getTypeAtFlowNode (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33847:32)
at getTypeAtFlowArrayMutation (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33914:36)
at getTypeAtFlowNode (D:\web\Code\Mobile\IonicApp\node_modules\typescript\lib\typescript.js:33847:32)
@ ./
@ ./src/pages/pdf-viewer/ng-pdf-viewer.component.ngfactory.ts
@ ./src/app/app.module.ngfactory.ts
@ ./src/app/main.ts
at BuildError.Error (native)
at new BuildError (D:\web\Code\Mobile\IonicApp\node_modules@ionic\app-scripts\dist\util\errors.js:16:28)
at callback (D:\web\Code\Mobile\IonicApp\node_modules@ionic\app-scripts\dist\webpack.js:119:28)
at D:\web\Code\Mobile\IonicAppechanic\node_modules\webpack\lib\Compiler.js:256:15
at Compiler.emitRecords (D:\web\Code\Mobile\IonicApp\node_modules\webpack\lib\Compiler.js:351:37)
at D:\web\Code\Mobile\IonicAppechanic\node_modules\webpack\lib\Compiler.js:249:12
at D:\web\Code\Mobile\IonicApp\node_modules\webpack\lib\Compiler.js:344:11
at next (D:\web\Code\Mobile\IonicApp\node_modules\tapable\lib\Tapable.js:154:11)
at Compiler. (D:\web\Code\Mobile\IonicApp\node_modules\webpack\lib\performance\SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (D:\web\Code\Mobile\IonicApp\node_modules\tapable\lib\Tapable.js:158:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] ionic:build:
ionic-app-scripts build "--prod"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] ionic:build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xxxxx\AppData\Roaming\npm-cache_logs\2017-06-14T05_13_03_386Z-debug.log
The text was updated successfully, but these errors were encountered: