-
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
🐛[BUG] Module not found: Error: Package path ./helpers/esm/regeneratorRuntime is not exported from package \@ant-design\pro-list\node_modules\@babel\runtime (see exports field in \node_modules\@ant-design\pro-list\node_modules\@babel\runtime\package.json) #5273
Comments
以下的 Issues 可能会帮助到你 / The following issues may help you
|
Hi! Babel maintainer here. This error looks different from the linked dva issue; I'll take a look later today. |
@nicolo-ribaudo I copied manually root node_modules/@babel/runtime folder to all ant-design-procomponents node_modules and it successfully compiled. Maybe this is not a bug, but I don't know why, I cant find any issue about, if this is about the network problem. |
My project worked fine,before yarn add ant-design/pro-list.According to the error, there is no config about regeneratorRuntime in node_modules@ant-design\pro-list\node_modules@babel\runtime\package.json. I want to know the problem |
Ok so, here is the problem:
How can this problem be fixed? (Note: these are 3 different solutions, sorted from the most ugly one to the best one)
|
@nicolo-ribaudo Thank you so much. That's cool. I have spent time understanding this and benefit a lot from your detailed explanation.
I think the two other solutions should be the key to this problem. At the end, @nicolo-ribaudo thanks again. |
You could also try to manually delete every |
let me have a try |
@billyrrr if other pro components need to be updated to the latest @babel/runtime version, like pro-list,pro-field,pro-form. |
@stantoxt Other pro components definitely also need an update. I am unfamiliar with the error caused by these modules. I did not attempt a fix. |
Co-authored-by: 饶紫轩 <[email protected]>
Yes, adding the @babel/runtime@^7.18.0 to the React project with Antd solved this error in my case. This error came out after upgrading to React@v18 and [email protected]
|
🐛 bug 描述
当引入 @ant-design/pro-list ,编译报错
Module not found: Error: Package path ./helpers/esm/regeneratorRuntime is not exported from package @ant-design\pro-list\node_modules@babel\runtime (see exports field in \node_modules@ant-design\pro-list\node_modules@babel\runtime\package.json)
查看对应目录下的@babel\runtime\package.json 确实里面没有 regeneratorRuntime
但是 node_modules@babel\runtime\package.json 下面有 regeneratorRuntime
不知道是什么原因?和这个有关系吗?
babel/babel#14538
dvajs/dva#2493
📷 复现步骤
🏞 期望结果
💻 复现代码
The text was updated successfully, but these errors were encountered: