Jest error: Cannot use import statement outside a module #7875
Unanswered
shalusingal1989
asked this question in
Q&A
Replies: 1 comment
-
|
This question was asked before, for more information, please go there: #7269 In short, Jest doesn't "understand" ES modules (ESM) imports, so adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using ui5/web-components-react. When I try to run the tests I got the error:
import '@ui5/webcomponents/dist/Assets.js';
SyntaxError: Cannot use import statement outside a module
Can someone please suggest the solution?
Beta Was this translation helpful? Give feedback.
All reactions