Skip to content

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

Description

@WesSouza

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions