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

Error when running storybook storybook in dev or build with node 17 #11

Closed
elhaw opened this issue Jun 9, 2022 · 1 comment
Closed

Comments

@elhaw
Copy link
Contributor

elhaw commented Jun 9, 2022

Story
when I run storybook with node 17 it shows the below error
OS :Windows 10 Enterprise

10% building 1/7 modules 6 active /workspaces/m3ntorship-ui/node_modules/@storybook/addon-outline/preview.js-generated-config-entry.jsnode: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:135:10)
    at module.exports (/workspaces/m3ntorship-ui/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/workspaces/m3ntorship-ui/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/workspaces/m3ntorship-ui/node_modules/webpack/lib/NormalModule.js:471:10)
    at /workspaces/m3ntorship-ui/node_modules/webpack/lib/NormalModule.js:503:5
    at /workspaces/m3ntorship-ui/node_modules/webpack/lib/NormalModule.js:358:12
    at /workspaces/m3ntorship-ui/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/workspaces/m3ntorship-ui/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at /workspaces/m3ntorship-ui/node_modules/loader-runner/lib/LoaderRunner.js:205:4
    at /workspaces/m3ntorship-ui/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:85:15
    at processTicksAndRejections (node:internal/process/task_queues:78:11) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.9.1

Tasks
we need to address which node version we will use in the project
we need to sure the project works fine with node version we will use
we need to check it on different OS( mac & Linux)

**Helpful resources **
I do not know exactly why but the issue here storybook

It works fine with nodejs 14,15,16,18

@elhaw
Copy link
Contributor Author

elhaw commented Jul 19, 2022

we use nodejs 14.x in the project and the issue is resolved.

@elhaw elhaw closed this as completed Jul 19, 2022
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