- Home
- Forum
- Angular - EJ 2
- ng build --prod error after updating to 17.1.50
ng build --prod error after updating to 17.1.50
I get the following error on production build after update
My Angular version is 6.1.9
ERROR in ./node_modules/@syncfusion/ej2-angular-calendars/@syncfusion/ej2-angular-calendars.es5.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
Error: Debug Failure. False expression.
at getJSDocTags (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:13197:22)
at getFirstJSDocTag (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:13205:24)
at Object.getJSDocTypeTag (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:13154:19)
at checkParenthesizedExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45628:56)
at checkExpressionWorker (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45676:28)
at checkExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45609:42)
at checkBinaryLikeExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45155:29)
at checkBinaryExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45147:20)
at checkExpressionWorker (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45702:28)
at checkExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45609:42)
at checkExpressionCached (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45457:38)
at getTypeOfExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45577:28)
at checkDeclarationInitializer (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45469:24)
at getTypeForVariableLikeDeclaration (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:30738:28)
at getWidenedTypeForVariableLikeDeclaration (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:30961:24)
at getTypeOfVariableOrParameterOrProperty (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:31062:28)
ERROR in ./node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
Error: Debug Failure. False expression.
at getJSDocTags (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:13197:22)
at getFirstJSDocTag (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:13205:24)
at Object.getJSDocTypeTag (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:13154:19)
at checkParenthesizedExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45628:56)
at checkExpressionWorker (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45676:28)
at checkExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45609:42)
at checkBinaryLikeExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45155:29)
at checkBinaryExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45147:20)
at checkExpressionWorker (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45702:28)
at checkExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45609:42)
at checkExpressionCached (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45457:38)
at getTypeOfExpression (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45577:28)
at checkDeclarationInitializer (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:45469:24)
at getTypeForVariableLikeDeclaration (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:30738:28)
at getWidenedTypeForVariableLikeDeclaration (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:30961:24)
at getTypeOfVariableOrParameterOrProperty (C:\Users\Documents\Projects\Angular\ShippingCo-FoDeploy\ShippingCo\shippingCo-angular\node_modules\typescript\lib\typescript.js:31062:28)
SIGN IN To post a reply.
3 Replies
AB
Ashokkumar Balasubramanian
Syncfusion Team
June 24, 2019 11:14 AM UTC
Hi Sahal,
Good day to you.
We have checked with your query and suspect that the reported issue (“ng build --prod produces build error”) may be caused due to lower version of angular devkit version is referred in your application since this package is newly introduced in Angular 6.0 and angular cli version is not optimized in this version.
So, we suggest you update the angular dev kit version to V0.10.7 ("@angular-devkit/build-angular": "0.10.7"), since this version is compatible for angular 6 to get rid of the reported issue at your end. We have prepared the sample with mentioned version. Please find the sample from the below link.
Still issue persists, please revert with issue reproducing sample (if possible) or package.json, app.component.ts and app.module.ts file that will help us to check and resolve the issue earliest.
Regards,
Ashokkumar B.
Hi Sahal,Good day to you.We have checked with your query and suspect that the reported issue (“ng build --prod produces build error”) may be caused due to lower version of angular devkit version is referred in your application since this package is newly introduced in Angular 6.0 and angular cli version is not optimized in this version.So, we suggest you update the angular dev kit version to V0.10.7 ("@angular-devkit/build-angular": "0.10.7"), since this version is compatible for angular 6 to get rid of the reported issue at your end. We have prepared the sample with mentioned version. Please find the sample from the below link.Still issue persists, please revert with issue reproducing sample (if possible) or package.json, app.component.ts and app.module.ts file that will help us to check and resolve the issue earliest.Regards,Ashokkumar B.
this is working for me thanks a lot for this
SP
Sureshkumar P
Syncfusion Team
January 29, 2020 07:10 AM UTC
Hi Sumit,
Thanks for your update. Please get back to us if you need further assistance on this
Regards,
Sureshkumar P
SIGN IN To post a reply.
- 3 Replies
- 4 Participants
-
SA Sahal
- Jun 22, 2019 01:29 PM UTC
- Jan 29, 2020 07:10 AM UTC