dalelotts / angular-bootstrap-datetimepicker

Native Angular date/time picker component styled by Twitter Bootstrap
http://dalelotts.github.io/angular-bootstrap-datetimepicker/
MIT License
1.28k stars 409 forks source link

Error when build prod #453

Closed Yevhenii-Prodan closed 4 years ago

Yevhenii-Prodan commented 4 years ago

What is the expected behavior?

success

What is the current behavior?

ERROR in ./node_modules/angular-bootstrap-datetimepicker/fesm5/angular-bootstrap-datetimepicker.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property 'kind' of undefined

What are the steps to reproduce?

npm run ng build -- --prod

Which versions of angular-bootstrap-datetimepicker, OS, TypeScript, browsers are affected?

4.0.2

Is there anything else we should know?

on version 3.1.0 it works

dalelotts commented 4 years ago

Hey, there isn't enough information for me to determine what the issue is. Please post a stackblitz

dalelotts commented 4 years ago

Looks like this issue - https://stackoverflow.com/questions/53827570/typeerror-cannot-read-property-kind-of-undefined-at-getassignmenttargetkind

dalelotts commented 4 years ago

A bit of googling links this issue to a mismatch of typescript and angular and maybe a few other things. Closing now. Reopen if you can for sure link it to this project.