-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
aot process working in 1.2.6 now failing in 1.3 #1573
Comments
rollup config: import rollup from 'rollup' export default {
] |
it could be fixed with build configuration |
@budcribar please try a solution from PR |
I'm had the same issue (rollup js failing). Using version 1.2.6 fixed it for me. Setting |
@xclayl please try v1.3.3 |
@valorkin Thanks, but 1.3.3 still fails with the "moment" error when doing the AOT build. I deleted my node_modules folder and ran "npm install" before testing. |
@xclayl does it works with "allowSyntheticDefaultImports": true ? |
This issue still occurs with "allowSyntheticDefaultImports": true. Changing: in |
Still doesn't work for 1.3.3 "Cannot call a namespace ('moment')" |
I also have the same issue and downgrading to 1.2.6 not solves my problem it also shows the same error:
What I can do is change this line in date-formatter.js |
For some reason this doesn't work for me:
|
I am still having this problem in 3 different projects. Is there a workaround other than reverting back to 1.2.6? |
I am using angular-cli and AoT works fine, |
I haven't tried this yet, but my system.js differs from the recommendation here (angular2 quickstart-based): https://github.com/valor-software/angular2-quickstart/blob/master/README.md |
Fails during the rollup step in the aot process
rollup -c rollup-config.js produces
Cannot call a namespace ('moment')
node_modules\ng2-bootstrap\datepicker\date-formatter.js (6:15)
4: }
5: DateFormatter.prototype.format = function (date, format) {
6: return moment(date.getTime()).format(format);
^
7: };
8: return DateFormatter;
The text was updated successfully, but these errors were encountered: