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

Installing older version for storybook #14848

Closed
rajanlagah opened this issue May 7, 2021 · 4 comments
Closed

Installing older version for storybook #14848

rajanlagah opened this issue May 7, 2021 · 4 comments
Labels

Comments

@rajanlagah
Copy link

What's the problem?
Clear and concise statement of what's troubling you.
I am facing error like

The react-scripts package provided by Create React App requires a dependency:

  "babel-loader": "8.1.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-loader was detected higher up in the tree:

  client/node_modules/babel-loader (version: 8.2.2) 

Manually installing incompatible versions is known to cause hard-to-debug issues.

To debug it I did

npm ls babel-loader

and got
Screenshot 2021-05-07 at 6 59 06 PM

The latest version for babel in react-script@latest is 8.1.0 but storybook is using 8.2.0

So Do i have any way to install older version of storybook in my react project

Is there documentation on this?
If this is documented at https://storybook.js.org/docs/ but the documentation is incomplete or unclear, link to it here.

Additional context
Add any other context about the problem here.
what i did

npx sb init

This is installing the latest version of storybook and i think 6.1.14 will work for me as i have that in my older storybook projects.

@lagahrajan
Copy link

In case anybody has the same requirements then run this

yarn add -D @storybook/addon-actions@6.1.14 @storybook/addon-essentials@6.1.14 @storybook/addon-links@6.1.14 @storybook/node-logger@6.1.14 @storybook/react@6.1.14

This worked for me

@littlewish89

This comment was marked as off-topic.

@merceyz
Copy link
Contributor

merceyz commented May 8, 2021

Duplicate of #4764
See #4764 (comment)

As a workaround you can install babel-loader@8.1.0 in your project

@shilman
Copy link
Member

shilman commented May 9, 2021

closing as dupe to #4764

@shilman shilman closed this as completed May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@shilman @merceyz @rajanlagah @littlewish89 @lagahrajan and others