Skip to content

Aot and production build failed #429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thomasaelbrecht opened this issue Apr 8, 2018 · 4 comments
Closed

Aot and production build failed #429

thomasaelbrecht opened this issue Apr 8, 2018 · 4 comments
Assignees

Comments

@thomasaelbrecht
Copy link

When I try to build my project with the following command:

ng build --aot -prod

Then I get the following warnings and error:
WARNING in Invalid background value at 252:282. Ignoring.

WARNING in Invalid background value at 276:60084. Ignoring.

ERROR in ../angular-bootstrap-datetimepicker/angular-bootstrap-datetimepicker.ts(104,9): Error during template compile of 'DlDateTimePickerStringModule'
Function calls are not supported in decorators but 'localeData' was called.

What does that mean? Can you figure out a solution?
Thanks!

@dalelotts
Copy link
Owner

Thanks for letting me know about this issue. I will release a fix shortly.

@dalelotts dalelotts self-assigned this Apr 8, 2018
@dalelotts dalelotts added the Bug label Apr 8, 2018
@dalelotts
Copy link
Owner

Related to angular/angular#15587

@dalelotts
Copy link
Owner

🎉 This issue has been resolved in version 2.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@thomasaelbrecht
Copy link
Author

thomasaelbrecht commented Apr 8, 2018

Thanks for the quick solution, I appreciate that a lot! I'll give it a try tomorrow.

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

No branches or pull requests

2 participants