Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Build fails while running command : 'ng build --prod' #138

Open
vishal-variyani opened this issue Apr 13, 2020 · 6 comments
Open

Build fails while running command : 'ng build --prod' #138

vishal-variyani opened this issue Apr 13, 2020 · 6 comments

Comments

@vishal-variyani
Copy link

I am getting this error when I try to create a production build.:

ERROR in ./node_modules/saturn-datepicker/fesm2015/saturn-datepicker.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property 'kind' of undefined at isAngularDecoratorMetadataExpression (/home/codal/projects/altumai-fe/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:230:35) at checkNodeForDecorators (/home/codal/projects/altumai-fe/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:53:21)

@florent1933
Copy link

florent1933 commented Apr 15, 2020

@vishal-variyani , I have the same issue. Did you manage it? I am in angular 8 and downgrade this package to 8.0.1 and it's working with this version.

@Lempkin
Copy link

Lempkin commented Apr 23, 2020

Hi! Same here, did you find any solution?

@rickyh2007
Copy link

Same here, any solution to it or workaround?

@nschimek
Copy link

nschimek commented May 15, 2020

I am also getting this in Angular 8. Disabling the build optimizer in angular.json worked as a temporary workaround. Downgrading to 8.0.1 also worked, even with build optimizer remaining enabled.

According to https://stackoverflow.com/questions/58694820/cannot-read-property-kind-of-undefined, the solution looks pretty simple? But requires changing tsconfig.json.

@andgest
Copy link

andgest commented May 29, 2020

Same problem here

@lucifer63
Copy link

The problem still exists

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants