-
-
Notifications
You must be signed in to change notification settings - Fork 584
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: SyntaxError: Cannot use import statement outside a module #1346
Comments
You will have to update to the new version of jest angular preset (currently it's 11.0.0.rc2) as angular libs are now ESM only |
I'm using |
Apparently this module needs to be excluded in jest using |
Great find, thanks! I'll try to add a note about that |
After updating to @ngx-translate/[email protected], I keep getting this error in my jest tests (application itself works fine):
Any idea what the issue might be?
I also created a simple new Angular project, added ngx-translate + jest and added the
TranslateService
in the constructor of theAppComponent
. It has the same issue.The text was updated successfully, but these errors were encountered: