Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local site opensslErrorStack #338

Open
kurtbruns opened this issue May 2, 2023 · 0 comments
Open

Local site opensslErrorStack #338

kurtbruns opened this issue May 2, 2023 · 0 comments

Comments

@kurtbruns
Copy link
Collaborator

kurtbruns commented May 2, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant