Build error from slow start - babel-core vs @babel/core
See original GitHub issueHi,
I’m following the slow start instructions, which start with:
npm i --save-dev babel-core
npm i --save-dev babel-loader
When I later run the script to start storybook, it fails out with:
ERROR in ./.storybook/config.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/core'
babel-loader@8 requires Babel 7.x (the package '@babel/core').
If you'd like to use Babel 6.x ('babel-core'), you should install 'babel-loader@7'.
Do I need a different core or a different loader, or is something else going on?
(Or even better, is there any way to get a “built” version of storybook that’s already transpiled and doesn’t need Babel to be present at runtime? I assume not but if there is that would be ideal!)
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Webpack failed to compile error. babel-core version issue
I uninstalled babel-core v6.25.0 and installed @babel/core v7.10.4 but still getting same error. Is there any way to solve this issue?
Read more >babel/preset-env
babel /preset-env` is a smart preset that allows you to use the latest JavaScript without needing to micromanage which syntax transforms (and optionally, ......
Read more >babel-loader - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >babel-jest | Yarn - Package Manager
If you are already using jest-cli , add babel-jest and it will automatically compile JavaScript code using Babel. yarn add --dev babel-jest @babel/core....
Read more >ember-cli-babel - npm
Start using ember-cli-babel in your project by running `npm i ... with a polyfill that includes a custom regenerator runtime and core-js.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@andyhall i’m gonna update the wiki page as we speak, but meanwhile you can use this post as a up-to-date slow start instruction set for vue.
@andyhall PR to update doc is on its way. Thank you for reporting !