-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
After upgrading to jest 27: SyntaxError: Cannot use import statement outside a module #11446
Comments
Please include a reproduction |
I also encountered this. Worked after |
@tu4mo Thank you for the tip, but already tried and it does not resolve the problem in my environment. |
@SimenB I've tried to reproduce the problem in a test environment but was not able to do so and therefore hoped that others might have the same problem and can help to track it down. |
@SimenB Could you eventually help me to better understand where the error actually originates or what the root cause might be? |
seems more likely to be related to ts-jest. but I don't know |
Here’s a link to the same issue in ts-jest repo |
@arty-name Are you sure, this is the same problem? The error message looks quite different. |
@SimenB I now have an example to reproduce this problem and it seems to be caused by the |
This is issue with |
Ah cool (or not really, but you know 😅). I'll close this, then |
True, it was a different issue, I skimmed it too quickly to notice that. For future reference I will now link to the new issue you have created there. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
💥 Regression Report
Last working version
Worked up to version: 26.6.3
Stopped working in version: 27.0.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Link to repl or repo (highly encouraged)
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: