-
Notifications
You must be signed in to change notification settings - Fork 154
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
Angular 13 + ngx-moment 6.0.2: This module is declared with using 'export = #275
Comments
I also faced the same issue with 6.0.2. I think the import statement has been changed to 'import 'moment' from moment;'. Should it be 'import * as moment from 'moment';'? I saw this change while trying between 6.0.1 and 6.0.2. @vadimwe, Meanwhile, I would advise to switch to 6.0.1 and then try to build the solution. |
Back porting to 6.0.1 re-introduces this issue #245 |
Enable the |
If the maintainer changes |
Will @JaxonWright change ever be implemented? |
+1 |
1 similar comment
+1 |
I am sure you guys wont like my comment as it might not be helpful however i was in your place once. I got rid of moment library all together and moved to |
Following @hassanasad's advice is indeed the correct one, as the moment team has announced they deprecated the project.
|
Multiple error in CLI:
This module is declared with using 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.
Problem goes away if allowSyntheticDefaultImports: true in tsconfig.json
Did you search for duplicate issue? [Yes / No]
Yes
Please describe the issue and steps to reproduce, preferably with a code sample / plunker:
Angular update till v13.*
Ionic update till 6.*
ngx-moment update to 6.0.2
ionic serve/build
moment
version? 2.29.1moment-timezone
? NoThe text was updated successfully, but these errors were encountered: