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

demo app doesn't seem to work with node versions newer than 16. #21

Open
stopfstedt opened this issue Oct 31, 2024 · 0 comments
Open

demo app doesn't seem to work with node versions newer than 16. #21

stopfstedt opened this issue Oct 31, 2024 · 0 comments

Comments

@stopfstedt
Copy link

stopfstedt commented Oct 31, 2024

following the setup steps in the tutorial, i'm trying to spin up the app post-install using npm run start.

however, i get the following error using the latest stable node release:

Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (/home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/stefan/dev/projects/mirage-tutorial/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/stefan/dev/projects/mirage-tutorial/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/home/stefan/dev/projects/mirage-tutorial/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
/home/stefan/dev/projects/mirage-tutorial/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (/home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/NormalModule.js:417:16)
    at /home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/NormalModule.js:452:10
    at /home/stefan/dev/projects/mirage-tutorial/node_modules/webpack/lib/NormalModule.js:323:13
    at /home/stefan/dev/projects/mirage-tutorial/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /home/stefan/dev/projects/mirage-tutorial/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/home/stefan/dev/projects/mirage-tutorial/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /home/stefan/dev/projects/mirage-tutorial/node_modules/babel-loader/lib/index.js:59:103 {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v22.11.0

i'm getting the same results on the LTS releases for Node 20 and 18 as well.

the most current version that works for me is the Node 16 LTS release (lts/gallium -> v16.20.2).

@stopfstedt stopfstedt changed the title demo app doesn't seem to work with node version newer than 16. demo app doesn't seem to work with node versions newer than 16. Oct 31, 2024
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