Skip to content
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

ci: build-storybook fails intermittently on @beta #345

Open
WesSouza opened this issue Aug 5, 2022 · 0 comments
Open

ci: build-storybook fails intermittently on @beta #345

WesSouza opened this issue Aug 5, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@WesSouza
Copy link
Member

WesSouza commented Aug 5, 2022

After updating Storybook files (on .storybook) to TypeScript, our build started to intermittently fail only on GitHub Actions.

Retrying eventually works, and locally the issue does not manifest.

This is one example of the logs:
https://github.com/arturbien/React95/runs/7693610668?check_suite_focus=true

Babel issue:

ERR! Module build failed (from ./node_modules/babel-loader/lib/index.js):
ERR! TypeError: [BABEL] /home/runner/work/React95/React95/storybook-config-entry.js: getModulesListForTargetVersion is not a function (While processing: "/home/runner/work/React95/React95/node_modules/babel-plugin-polyfill-corejs3/esm/index.mjs")
ERR!     at factory (file:///home/runner/work/React95/React95/node_modules/babel-plugin-polyfill-corejs3/src/index.ts:66:29)
ERR!     at instantiateProvider (file:///home/runner/work/React95/React95/node_modules/@babel/helper-define-polyfill-provider/src/index.ts:251:20)
ERR!     at file:///home/runner/work/React95/React95/node_modules/@babel/helper-define-polyfill-provider/src/index.ts:305:7
ERR!     at /home/runner/work/React95/React95/node_modules/@babel/helper-plugin-utils/lib/index.js:23:12
ERR!     at async (/home/runner/work/React95/React95/node_modules/@babel/core/lib/gensync-utils/async.js:46:33)
ERR!     at async (/home/runner/work/React95/React95/node_modules/gensync/index.js:186:15)
ERR!     at /home/runner/work/React95/React95/node_modules/gensync/index.js:216:13
ERR!     at Generator.next (<anonymous>)
ERR!     at /home/runner/work/React95/React95/node_modules/@babel/core/lib/config/full.js:229:21
ERR!     at Generator.next (<anonymous>)

Throws Webpack:

ERR! Error: => Webpack failed, learn more with --debug-webpack
ERR!     at /home/runner/work/React95/React95/node_modules/@storybook/builder-webpack5/dist/cjs/index.js:234:62
ERR!     at /home/runner/work/React95/React95/node_modules/webpack/lib/HookWebpackError.js:68:3
ERR!     at Hook.eval [as callAsync] (eval at create (/home/runner/work/React95/React95/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
ERR!     at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/runner/work/React95/React95/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
ERR!     at Cache.shutdown (/home/runner/work/React95/React95/node_modules/webpack/lib/Cache.js:150:23)
ERR!     at /home/runner/work/React95/React95/node_modules/webpack/lib/Compiler.js:1225:15
ERR!     at Hook.eval [as callAsync] (eval at create (/home/runner/work/React95/React95/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
ERR!     at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/runner/work/React95/React95/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
ERR!     at Compiler.close (/home/runner/work/React95/React95/node_modules/webpack/lib/Compiler.js:1218:23)
ERR!     at /home/runner/work/React95/React95/node_modules/@storybook/builder-webpack5/dist/cjs/index.js:233:20
@WesSouza WesSouza added bug Something isn't working help wanted Extra attention is needed v4 @beta labels Aug 5, 2022
@WesSouza WesSouza removed the v4 @beta label Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant