question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build error from slow start - babel-core vs @babel/core

See original GitHub issue

Hi,

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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
y-nkcommented, Nov 21, 2018

@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.

0reactions
y-nkcommented, Nov 21, 2018

@andyhall PR to update doc is on its way. Thank you for reporting !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found