-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Storybook build fails in Node 13 (cannot find module @babel/compat-data/corejs3-shipped-proposals) #10477
Comments
cc @ndelangen |
I found the same problem while trying to build marktext and it also builds fine with Node 12.16.2. I suppose it's an upstream bug. |
Is there an issue upstream we can track? |
I did not found a related issue at github/babel-loader. I tried without sucess to build with babel-loader 8.1.0 (latest). Would be create if someone with more experience with these tools opened one. |
|
I had the same error message with a laravel & bootstrap-vue app. |
@Sandman83 By the way, I also had to delete the |
Removing |
Had this issue today, removing node_modules and package-lock.json worked for me. |
I removed |
This error has appeared to me when I ran |
In my case updating |
Try If this doesn't work, try updating the following, delete the
Hope this works |
how did u figure this out dude , it finally helped me thanks alot |
Thanks it works for me! |
``` Module build failed (from ../node_modules/babel-loader/lib/index.js): Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals' Require stack: - ~/scrivito_example_app_js/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js ``` Solution found here: storybookjs/storybook#10477 (comment)
thx a lot sir, it work for me |
I found that error when the node bumped up from 12.16.1 to 12.17.0 |
test 패키지 빌드할 때 발생하는 에러를 확인해보니 오래된 바벨 패키지에서 발생하는 것으로 보였습니다. storybookjs/storybook#10477
test 패키지 빌드할 때 발생하는 에러를 확인해보니 오래된 바벨 패키지에서 발생하는 것으로 보였습니다. storybookjs/storybook#10477
This is an attempt to fix this issue with Node.js 12: - storybookjs/storybook#10477 - nodejs/node#32852
also had to update babel storybookjs/storybook#10477
I fixed my problem by removing the 2 entries from |
Since only solutions but no reasons were mentioned in here so far (I was wondering which solution is the right one because of this), I thought I should point it out. This issue leads to the fact that babel relied on node behavior that was actually a bug. Then that bug got fixed in Node and the babel package started exhibiting this issue. And so I would recommend to upgrade |
我也遇到了这个问题 , 仅仅删除 node_modules 没有用, 还得删除 package-lock.json 文件才行 |
Latest solution:
亲测有效!!! |
Node 13 has issues with Storybook storybookjs/storybook#10477
In my case updating @babel/preset-env from ^7.11.5 helped |
|
Describe the bug
Storybook builds fine in Node 12 (the latest LTS version) but fails in Node 13 (the latest Current version) with error
cannot find module @babel/compat-data/corejs3-shipped-proposals
.To Reproduce
Build a React Storybook project with Node 13.
Logs
Here are the full build logs:
System:
We tried the following systems:
CI (GitHub Actions):
OS: Ubuntu 18.04.4
Node: 13.13.0 (❌ fails)
Storybook (React): 5.3.17
Local (Windows):
OS: Windows 10 Pro 1909
Node: 10.16.3 (✔️ succeeds), 12.16.2 (✔️ succeeds), 13.13.0 (❌ fails)
Storybook (React): 5.3.17
The text was updated successfully, but these errors were encountered: