You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the site locally for the first time I get an error. This error can be fixed by adding the --openssl-legacy-provider flag to node as shown below and then running yarn dev as usual.
export NODE_OPTIONS=--openssl-legacy-provider
Here is the full stack trace of the error.
yarn run v1.22.15
$ next build
info - Loaded env from /Users/kurtbruns/Sites/3blue1brown.com/.env
info - Using webpack 4. Reason: custom webpack configuration in next.config.js https://nextjs.org/docs/messages/webpack5
info - Checking validity of types
info - Creating an optimized production build ..node:internal/crypto/hash:67
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:133:10)
at module.exports.__webpack_modules__.15660.module.exports (/Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:111680:62)
at NormalModule._initBuildHash (/Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:85092:16)
at handleParseError (/Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:85146:10)
at /Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:85178:5
at /Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:85033:12
at /Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:51096:3
at iterateNormalLoaders (/Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:50937:10)
at iterateNormalLoaders (/Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:50944:10)
at /Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:50959:3
at context.callback (/Users/kurtbruns/Sites/3blue1brown.com/node_modules/next/dist/compiled/webpack/bundle4.js:50834:13)
at /Users/kurtbruns/Sites/3blue1brown.com/node_modules/@sentry/webpack-plugin/src/sentry.loader.js:6:5 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.2.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
When running the site locally for the first time I get an error. This error can be fixed by adding the
--openssl-legacy-provider
flag to node as shown below and then runningyarn dev
as usual.Here is the full stack trace of the error.
The text was updated successfully, but these errors were encountered: