The Travis build was failing because versions of Node > 17 started supporting OpenSSL version 3, but Webpack 4 (used by Storybook) uses the MD4 algorithm to create file hashes and MD4 is not enabled in OpenSSL version 3. The options to fix this appear to be:
Upgrade Storybook to version 7 (but v.7 was JUST released and is still in beta, so I recommend we wait, particularly because it will require a few other changes to our Storybook implementation).
Add NODE_OPTIONS=--openssl-legacy-provider to the storybook and storybook-build scripts in package.json as discussed in this GitHub issue, which I have done here as a temporary fix before we move to Storybook 7.
The Travis build was failing because versions of Node > 17 started supporting OpenSSL version 3, but Webpack 4 (used by Storybook) uses the MD4 algorithm to create file hashes and MD4 is not enabled in OpenSSL version 3. The options to fix this appear to be:
NODE_OPTIONS=--openssl-legacy-provider
to thestorybook
andstorybook-build
scripts inpackage.json
as discussed in this GitHub issue, which I have done here as a temporary fix before we move to Storybook 7.