-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
CRA & Storybook webpack clash #6505
Comments
@shilman, it may require a similar fix. @firaskrichi, can you please run |
Hello, I am having the same issue here, I am giving you the result of
|
@shilman is there an easy workaround we could do until this is fixed maybe? A version that's likely to work? |
I'm not sure, @mrmckeb is the expert here! Happy to prioritize a release this to get it fixed for CRA users! |
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! |
I have the same issue :(
Require assistance please...have no idea how to fix this |
@mrmckeb what do you advise doing here? |
I'm also having this problem and I'd really appreciate some help.
In the meantime I have added this to my package.json and run
|
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! |
So far I have found only one solution: add Anybody has any ideas on how to deal with this? |
Actually, found a solution: all I had to do was move the |
Hi all, you need to have If you're seeing versioning issues, try removing your |
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! |
I'm still seeing this issue with react-scripts 3.1.1 and storybook 5.1.11 when I add Storybook to an existing project. I'm not using The one solution that does work is to use yarn instead of npm to install dependencies, presumably due to its superior dependency resolution abilities. If I create a new CRA project, however, and add Storybook there's no conflict when installing with npm (or yarn). The output of
The output of
As you can see, I'm using the exact same versions of react-scripts and storybook in both projects, yet in my existing project storybook is using |
Same issue here... :( Just tried to add current storybook/[email protected] to my existing CRA-app ([email protected]). Both are dependencies, not devDependencies. Using yarn instead of npm is not possible, so I don't know what to do... (except of unwillingly adding the SKIP_PREFLIGHT_CHECK flag 😒) Shouldn't be there a mass of people encountering the same problem? Trying to add the current storybook/react version to a CRA-app seems quite common for me |
@mrmckeb could we possibly take a look together, I could use some more information about how CRA does thinks and how we could improve the situation so this happens less often.. 🙇 |
Same issue:
The funny thing is that I copied the template of another CRA project where the correct version of storybook was installed
currently the whole org. works with npm so moving to yan might be an issue. |
Me too:
|
I had the same problem and the only thing that solved was putting storybook in the devDependencies (which I guess it's fine as it is only used for development purposes by us)
|
@Alellujah You'll probably want to get rid of those |
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! |
Still happening to me
using yarn, resolutions does nothing. |
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! |
In my case, Storybook has
When I did I added below in my
It worked for me and hope there is no issue with this solution. Thanks! |
Got the same issue. Found a solution for npm (npm doesn't support resolutions in package.json) : Storybook is working with any version of webpack 4.44.x and above, so should run properly. For yarn, not sure whether it works the same way as npm or not, but add resolutions should fix it as mentioned in above posts. By the way, |
@shomukai's technique worked like a charm for me. |
If you're using yarn then add this to package.json:
and then:
|
Problem solved with this version : https://github.com/storybookjs/storybook/releases/tag/v6.3.11 |
Version 6.3.11 worked well for me also. When I first upgraded all storybook packages manually to 6.3.11 I had trouble with some dependencies, but then I tried again with |
Unfortunately, neither the versions I'm trying every time again from scratch (no |
For me the fix was the one suggested by @outdoteth
IMPORTANT after adding this to the |
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! |
this is still not fixed. |
thx @johnnyoshika |
For me, either using |
Is this still an issue in 7.0 beta? |
CRA 2.1.5 & Storybook webpack clash - I tried with the latest alpha v of storybook v5.1.0-alpha.25 and the stable version and the problem happens in both
The text was updated successfully, but these errors were encountered: