segmentio/ui-box

Babel 7 error when running `yarn dev`

auchenberg opened this issue · 1 comments

Steps

  1. Checkout
  2. yarn install
  3. yarn dev

Result

➜  ui-box git:(master) ✗ yarn dev
yarn run v1.13.0
$ start-storybook -p 9009
info @storybook/react v3.4.10
info
info => Loading custom .babelrc
info => Using default webpack setup based on "Create React App".
webpack built eaf635685cd1dfe45e93 in 4174ms
Hash: eaf635685cd1dfe45e93
Version: webpack 3.12.0
Time: 4174ms
                       Asset       Size  Chunks                    Chunk Names
    static/manager.bundle.js    2.97 MB       0  [emitted]  [big]  manager
    static/preview.bundle.js     506 kB       1  [emitted]  [big]  preview
static/manager.bundle.js.map    3.63 MB       0  [emitted]         manager
static/preview.bundle.js.map     604 kB       1  [emitted]         preview
                  index.html    1.21 kB          [emitted]
                 iframe.html  769 bytes          [emitted]
  [57] ./node_modules/global/window.js 232 bytes {0} [built]
 [145] ./node_modules/@storybook/react/dist/server/config/polyfills.js 113 bytes {0} {1} [built]
 [349] ./node_modules/@storybook/ui/dist/index.js 2.43 kB {0} [built]
 [411] multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/addons.js ./node_modules/@storybook/core/dist/client/manager/index.js 52 bytes {0} [built]
 [412] ./node_modules/@storybook/react/dist/server/addons.js 105 bytes {0} [built]
 [413] ./node_modules/@storybook/addon-actions/register.js 38 bytes {0} [built]
 [573] ./node_modules/@storybook/core/dist/client/manager/index.js 423 bytes {0} [built]
 [864] ./node_modules/@storybook/core/dist/client/manager/provider.js 3.35 kB {0} [built]
 [872] multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/config/globals.js (webpack)-hot-middleware/client.js?reload=true ./.storybook/config.js 64 bytes {1} [built]
 [873] ./node_modules/@storybook/react/dist/server/config/globals.js 105 bytes {1} [built]
 [874] (webpack)-hot-middleware/client.js?reload=true 7.77 kB {1} [built]
 [875] ./node_modules/querystring-es3/index.js 127 bytes {1} [built]
 [880] (webpack)-hot-middleware/client-overlay.js 2.21 kB {1} [built]
 [885] (webpack)-hot-middleware/process-update.js 4.33 kB {1} [built]
 [886] ./.storybook/config.js 2.57 kB {1} [built] [failed] [1 error]
    + 872 hidden modules

ERROR in ./.storybook/config.js
Module build failed: Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.
Rowno commented

Oops, should be fixed now!