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

Define the required Node.js version to 16.x.x #28

Open
wants to merge 1 commit into
base: base
Choose a base branch
from

Conversation

jinmayamashita
Copy link
Collaborator

@jinmayamashita jinmayamashita commented Dec 16, 2022

@yannde Because vuejs-boilerplate is running on Node.js v16.x.x

I found that yarn storybook gives error on Node.js v18.x.x.
(Please refer to the following log)

$ node -v
v18.12.1
$ yarn storybook
yarn run v1.22.19
$ start-storybook -p 6006 -c _storybook
info @storybook/vue3 v6.5.9
info
info => Loading presets
info Found existing addon {"name":"@storybook/addon-docs","options":{"configureJSX":true,"babelOptions":{},"sourceLoaderOptions":null,"transcludeMarkdown":true}}, skipping.
info Found existing addon "@storybook/addon-controls", skipping.

info => Ignoring cached manager due to change in manager config
ℹ 「wdm」: wait until bundle finished:
Pre-bundling dependencies:
  @storybook/jest
  @storybook/testing-library
  storybook-vue3-router
  msw
  vue
  (...and 72 more)
(this will be run only when your dependencies or config have changed)
node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/private/tmp/vuejs-boilerplate/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/private/tmp/vuejs-boilerplate/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/private/tmp/vuejs-boilerplate/node_modules/webpack/lib/NormalModule.js:471:10)
    at /private/tmp/vuejs-boilerplate/node_modules/webpack/lib/NormalModule.js:503:5
    at /private/tmp/vuejs-boilerplate/node_modules/webpack/lib/NormalModule.js:358:12
    at /private/tmp/vuejs-boilerplate/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/private/tmp/vuejs-boilerplate/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/private/tmp/vuejs-boilerplate/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/private/tmp/vuejs-boilerplate/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /private/tmp/vuejs-boilerplate/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    at /private/tmp/vuejs-boilerplate/node_modules/graceful-fs/graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.12.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

and it was working fine in Node.js v16.x.x.

$ node -v
v16.19.0
$ yarn storybook
yarn run v1.22.19
$ start-storybook -p 6006 -c _storybook
info @storybook/vue3 v6.5.9
info
info => Loading presets
info Found existing addon {"name":"@storybook/addon-docs","options":{"configureJSX":true,"babelOptions":{},"sourceLoaderOptions":null,"transcludeMarkdown":true}}, skipping.
info Found existing addon "@storybook/addon-controls", skipping.
(node:7200) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /private/tmp/vuejs-boilerplate/node_modules/vuex/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)

info => Using cached manager
╭──────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                          │
│   Storybook 6.5.9 for Vue3 started                                                       │
│   155 ms for preview                                                                     │
│                                                                                          │
│    Local:            http://localhost:6006/                                              │
│    On your network:  http://172.20.10.7:6006/                                            │
│                                                                                          │
│   A new version (6.5.14) is available!                                                   │
│                                                                                          │
│   Upgrade now: npx storybook@latest upgrade                                              │
│                                                                                          │
│   Read full changelog: https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md   │
│                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────╯

@jinmayamashita jinmayamashita self-assigned this Dec 16, 2022
@jinmayamashita jinmayamashita added the wontfix This will not be worked on label Dec 16, 2022
@jinmayamashita jinmayamashita changed the title define the required node version Define the required Node.js version to 16.x.x Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant