-
Notifications
You must be signed in to change notification settings - Fork 1.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
🧐pro-tabel jest单测时报错 Cannot use import statement outside a module #582
Comments
看样子是你设置问题,你要是嫌麻烦 可以使用 lib 的配置,而不是用es |
I ran into the a similar issue when importing
|
Here are the contents of my
|
+1 also have this issue Config |
same issue using @ant-design/pro-layout |
any help |
现在项目是使用 Next app. 现在问题是 这个怎么解决呢? |
jest.config.js -> moduleNameMapper -> “^antd/es/(.*)$”: “/node_modules/antd/lib/$1” |
Thx works
|
Thanks very much, but are you mean put this config to the webpack config? |
no in jest config
for webpack no need |
Oh, not worked for me, still tks. |
Have you solve this problem? |
i havent import pro-list |
mark |
Can it be solved with |
1 similar comment
Can it be solved with |
Same issue with antd DatePicker.RangePicker |
🧐 问题描述
Ts项目中使用了pro-tabel,jest单测报错Cannot use import statement outside a module
🚑 其他信息
报错信息:
● Test suite failed to run
The text was updated successfully, but these errors were encountered: