Our CI images were switched from Node.js v14 to v16 as part of T314470. This broke Wikibase CI (logs) due to an incompatibility of some build step dependencies with Node.js v16 in view/lib/wikibase-tainted-ref/. There seem to be two separate issues:
- npm install is erroring due to some issue with the required version of the "node-sass" package or one of its dependencies. "node-sass" is deprecated anyway, and switching to the recommended dart sass package should be straightforward.
- the presence of the fibers package makes the storybook build fail. This is awkward because fibers is a transitive dependency of @wdio/sync in Wikibase's root-level package.json for browser tests (which will likely continue to run in a Node.js v14 environment for the foreseeable future). Upgrading to a newer storybook version may or may not fix this.