We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ng build --prod error after updating to 17.1.50

Thread ID:

Created:

Updated:

Platform:

Replies:

145453 Jun 22,2019 01:29 PM UTC Jan 29,2020 07:10 AM UTC Angular - EJ 2 3
loading
Tags: Calendar
Sahal
Asked On June 22, 2019 01:29 PM UTC

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)

Ashokkumar Balasubramanian [Syncfusion]
Replied On 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. 


Sumit Ruhela
Replied On January 28, 2020 09:12 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. 


this is working for me thanks a lot for this 

Sureshkumar P [Syncfusion]
Replied On January 29, 2020 07:10 AM UTC

Hi Sumit, 
 
 
Regards, 
Sureshkumar P 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon