question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storybook 5.3 failing to install on node 8

See original GitHub issue

Describe the bug Due to inquirer dropping support for node 8 in a minor version (7.3.0), it’s no longer possible to install @storybook/react@5.3.x in node 8.

To Reproduce Steps to reproduce the behavior:

  1. nvm use 8
  2. yarn add --dev @storybook/react@5.3
  3. error chalk@4.1.0: The engine "node" is incompatible with this module. Expected version ">=10". Got "8.17.0"

Expected behavior It should install without error

Additional context I traced this down to https://github.com/SBoudrias/Inquirer.js/issues/940. One workaround that storybook could do is to release a 5.3 patch using inquirer@7.2.0 instead of relying on semver and ^7.0.0. For now, I’ve been able to work around this using resolutions in my package.json, but that’s not ideal. Hopefully inquirer will release a fix, but I wanted to at least raise this issue here because that’s where I ran into it and others might too.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
IanVScommented, Oct 22, 2020

Hi @shilman, yes I understand that Node 8 is out of support. But some people like me are forced to still use it because of complicated reasons. I think it is a project’s responsibility to bump their major version any time a “breaking” change is made, and that dropping support for an execution environment is a breaking change. It definitely broke my usage.

I’m not asking that storybook continue to support old node versions, just that you are clear about which versions of storybook support which versions of node. @ndelangen suggested I downgrade to an old version of storybook. But I cannot tell which version I would need to downgrade to. And no matter what, your engines in package.json should be updated to reflect your current level of support.

And ideally, a simple change to lock storybook 5.x to inquirer 7.2 would restore node 8 compatibility, allowing you to say that 5.x will at least probably work in node 8 (even if it’s not totally tested), and 6.x is node 10+. Would you consider a PR that makes these changes?

0reactions
stale[bot]commented, Dec 25, 2020

Hi everyone! Seems like there hasn’t been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don’t have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storybook 5.3 failing to install on node 8 #11544 - Issuehunt
One workaround that storybook could do is to release a 5.3 patch using inquirer@7.2.0 instead of relying on semver and ^7.0.0 . For...
Read more >
Storybook 5.3
Storybook 5.3 ; Write stories and docs in MDX, the easiest way to interleave Javascript and Markdown. ; ✨ Generate best-practice documentation ...
Read more >
Webpack 5 and Storybook 6 integration throws an error in ...
First, you will need to install @storybook/builder-webpack5@next . Then you have to upgrade every @storybook dependency to version ...
Read more >
@storybook/addon-essentials - npm
Curated addons to bring out the best of Storybook. Latest version: 6.5.15, last published: 3 days ago.
Read more >
@storybook/react-native-server | Yarn - Package Manager
5.3.20-alpha.1 (August 27, 2020). Bug Fixes. server addons and update all dependencies to use storybook 5.3.20 #100. 5.3.20-alpha.0 (August 19, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found