SaturnTeam / saturn-datepicker

Angular Material Datepicker with range selection
MIT License
278 stars 110 forks source link

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

Open vishal-variyani opened 4 years ago

vishal-variyani commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

Hi! Same here, did you find any solution?

rickyh2007 commented 4 years ago

Same here, any solution to it or workaround?

nschimek commented 4 years ago

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 commented 4 years ago

Same problem here

lucifer63 commented 3 years ago

The problem still exists