Page MenuHomePhabricator

Vector CI on REL1_36 branch fails with UnhandledPromiseRejectionWarning
Closed, ResolvedPublic

Description

See https://integration.wikimedia.org/ci/job/mwgate-node12-docker/3146/console

16:52:50 See https://storybook.js.org/docs/configurations/custom-webpack-config/#full-control-mode
16:52:54 ERR! => Failed to build the preview
16:52:54 ERR! ./.storybook/config.js
16:52:54 ERR! Module build failed (from ./node_modules/babel-loader/lib/index.js):
16:52:54 ERR! Error: Cannot find module '/src/node_modules/@babel/compat-data/data/corejs3-shipped-proposals'
16:52:54 ERR!     at createEsmNotFoundErr (internal/modules/cjs/loader.js:842:15)
16:52:54 ERR!     at finalizeEsmResolution (internal/modules/cjs/loader.js:835:15)
16:52:54 ERR!     at resolveExports (internal/modules/cjs/loader.js:424:14)
16:52:54 ERR!     at Function.Module._findPath (internal/modules/cjs/loader.js:464:31)
16:52:54 ERR!     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:802:27)
16:52:54 ERR!     at Function.Module._load (internal/modules/cjs/loader.js:667:27)
16:52:54 ERR!     at Module.require (internal/modules/cjs/loader.js:887:19)
16:52:54 ERR!     at require (internal/modules/cjs/helpers.js:74:18)
16:52:54 ERR!     at Object.<anonymous> (/src/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
16:52:54 ERR!     at Module._compile (internal/modules/cjs/loader.js:999:30)
16:52:54 ERR!     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
16:52:54 ERR!     at Module.load (internal/modules/cjs/loader.js:863:32)
16:52:54 ERR!     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
16:52:54 ERR!     at Module.require (internal/modules/cjs/loader.js:887:19)
16:52:54 ERR!     at require (internal/modules/cjs/helpers.js:74:18)
16:52:54 ERR!     at Object.<anonymous> (/src/node_modules/@babel/preset-env/lib/index.js:29:44)
16:52:54 ERR!  @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/config.js main[2]
16:52:54 (node:975) UnhandledPromiseRejectionWarning: [object Object]
16:52:54 (node:975) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

Event Timeline

RhinosF1 triaged this task as Unbreak Now! priority.Jun 17 2021, 3:54 PM
RhinosF1 created this task.

Looks like the NPM dependencies on REL1_36 have not been updated properly. @babel/preset-env should be 7.9.0 or higher, but is currently version 7.8.7

Change 700629 had a related patch set uploaded (by Voidwalker; author: VolkerE):

[mediawiki/skins/Vector@REL1_36] build: Update 'svgo' to latest

https://gerrit.wikimedia.org/r/700629

RhinosF1 assigned this task to TheVoidwalker.

Patch +2'd by Jon

Change 700629 merged by jenkins-bot:

[mediawiki/skins/Vector@REL1_36] build: Update 'svgo' to latest

https://gerrit.wikimedia.org/r/700629