Storybook: Storybook busted on 5.3.10

Created on 21 Mar 2020  路  14Comments  路  Source: storybookjs/storybook

Describe the bug

ERROR in ./.storybook/generated-entry.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
Error: [BABEL] /Users/lifeiscontent/Source/lifetime/storybook/.storybook/generated-entry.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/Users/lifeiscontent/Source/lifetime/node_modules/@babel/preset-env/lib/index.js")
    at getPlugin (/Users/lifeiscontent/Source/lifetime/node_modules/@babel/preset-env/lib/index.js:67:11)
    at /Users/lifeiscontent/Source/lifetime/node_modules/@babel/preset-env/lib/index.js:258:62
    at Array.map (<anonymous>)
    at /Users/lifeiscontent/Source/lifetime/node_modules/@babel/preset-env/lib/index.js:258:43
    at /Users/lifeiscontent/Source/lifetime/node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
    at /Users/lifeiscontent/Source/lifetime/node_modules/@babel/core/lib/config/full.js:199:14
    at Generator.next (<anonymous>)
    at Function.<anonymous> (/Users/lifeiscontent/Source/lifetime/node_modules/@babel/core/lib/gensync-utils/async.js:26:3)
    at Generator.next (<anonymous>)
    at step (/Users/lifeiscontent/Source/lifetime/node_modules/gensync/index.js:254:32)
    at evaluateAsync (/Users/lifeiscontent/Source/lifetime/node_modules/gensync/index.js:284:5)
    at Function.errback (/Users/lifeiscontent/Source/lifetime/node_modules/gensync/index.js:108:7)
    at errback (/Users/lifeiscontent/Source/lifetime/node_modules/@babel/core/lib/gensync-utils/async.js:70:18)
    at async (/Users/lifeiscontent/Source/lifetime/node_modules/gensync/index.js:183:31)
    at onFirstPause (/Users/lifeiscontent/Source/lifetime/node_modules/gensync/index.js:209:13)
    at Generator.next (<anonymous>)
 @ multi ../node_modules/@storybook/core/dist/server/common/polyfills.js ../node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/generated-entry.js ../node_modules/webpack-hot-middleware/client.js?reload=true&quiet=true main[2]

the only file I have in the .storybook folder is main.ts

module.exports = {
  stories: ['../stories/*.stories.tsx']
};

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Code snippets
If applicable, add code samples to help explain your problem.

System:
Please paste the results of npx -p @storybook/cli@next sb info here.

Additional context
Add any other context about the problem here.

babel / webpack configuration inactive question / support

Most helpful comment

How did I get here? Where did it all go wrong? 馃

All 14 comments

cc @ndelangen

@shilman this ended up working once I changed all my storybook configs back to .js

the only file I have in the .storybook folder is main.js

@shilman this ended up working once I changed all my storybook configs back to .js

I'm confused

I had the same issue. Turns out its an issue with react-scripts 8680 so I fixed it by;

  1. deleting node_modules
  2. updating all dependancies on react-script 3.4.0 to 3.4.1 (monorepo)
  3. yarn
  4. storybook working again.

@Aaron-Pool are you still having this issue? Could the elaborate on what's wrong?

I think you mean @lifeiscontent 馃槀

How did I get here? Where did it all go wrong? 馃

the only file I have in the .storybook folder is main.js

@shilman this ended up working once I changed all my storybook configs back to .js

I'm confused

Sorry, corrected. main.ts

I have the same issue. I ran npx @storybook/cli init within an angular application. Then ran npm run storybook, but received the same errors. (using v5.3.17)
story files were .ts

ERROR in ./.storybook/generated-entry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] /Users/alexald/Dev/crafteddrones/ui-kit/.storybook/generated-entry.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/@babel/preset-env/lib/index.js")
    at getPlugin (/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/@babel/preset-env/lib/index.js:67:11)
    at /Users/alexald/Dev/crafteddrones/ui-kit/node_modules/@babel/preset-env/lib/index.js:258:62
    at Array.map (<anonymous>)
    at /Users/alexald/Dev/crafteddrones/ui-kit/node_modules/@babel/preset-env/lib/index.js:258:43
    at /Users/alexald/Dev/crafteddrones/ui-kit/node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
    at /Users/alexald/Dev/crafteddrones/ui-kit/node_modules/@babel/core/lib/config/full.js:199:14
    at Generator.next (<anonymous>)
    at Function.<anonymous> (/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/@babel/core/lib/gensync-utils/async.js:26:3)
    at Generator.next (<anonymous>)
    at step (/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/gensync/index.js:254:32)
    at evaluateAsync (/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/gensync/index.js:284:5)
    at Function.errback (/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/gensync/index.js:108:7)
    at errback (/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/@babel/core/lib/gensync-utils/async.js:70:18)
    at async (/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/gensync/index.js:183:31)
    at onFirstPause (/Users/alexald/Dev/crafteddrones/ui-kit/node_modules/gensync/index.js:209:13)
    at Generator.next (<anonymous>)
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/generated-entry.js (webpack)-hot-middleware/client.js?reload=true&quiet=true main[2]

....

ERROR in /Users/alexald/Dev/crafteddrones/ui-kit/src/stories/0-Welcome.stories.ts
ERROR in /Users/alexald/Dev/crafteddrones/ui-kit/src/stories/0-Welcome.stories.ts(1,25):
TS2307: Cannot find module '@storybook/angular/demo'.

ERROR in /Users/alexald/Dev/crafteddrones/ui-kit/src/stories/1-Button.stories.ts
ERROR in /Users/alexald/Dev/crafteddrones/ui-kit/src/stories/1-Button.stories.ts(4,24):
TS2307: Cannot find module '@storybook/angular/demo'.

Adding the dependency @babel/compat-data": "7.8.0" fixed the issue for me.

Resource: https://stackoverflow.com/questions/60790726/could-not-find-plugin-proposal-numeric-separator-in-angular-app

I can't even find what that package does... it has no readme.

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Solution: use .js configs

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tirli picture tirli  路  3Comments

xogeny picture xogeny  路  3Comments

miljan-aleksic picture miljan-aleksic  路  3Comments

tomitrescak picture tomitrescak  路  3Comments

tlrobinson picture tlrobinson  路  3Comments