-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
react-scripts 3.4 has backwards incompatible changes and fails #9010
Comments
related? High Denial of Service Package http-proxy Patched in No patch available Dependency of react-scripts [dev] Path react-scripts > webpack-dev-server > http-proxy-middleware > More info https://nodesecurity.io/advisories/1486 |
Hi @TeoTN, thanks for the report. The change itself is backwards compatible, but @storybook shipping with different version of webpack is causing the warning. As stated in the error message, there are multiple ways to solve the said issue (including SKIP_PREFLIGHT_CHECK) but one easy way is to force the resolution of
Ensure that only If the issue persist, there might be another webpack lower in the root of the project |
@petetnt Please kindly reopen the issue as the problem is not solved. Firstly, my problem is with updating react-scripts, as I have not touched storybook. Clearly specifying fixed version of webpack is a bug in react-scripts, as it assumes the enterprise grade projects won't have other dependencies with webpack included, this is clearly an erroneous assumption. Please notice, that in my original issue I'm clearly stating that use of yarn is not possible in my case. package resolutions are not supported by npm. Using Finally, disabling preflight check, or even fixing the webpack version and moving the burden of managing properly the version on me, is a regression on update and hence create react app introduces backwards incompatible change with the release. |
@TeoTN did you try deleting the |
Yes - the conflict is caused, to my understanding, by CRA specifying exact See related issue on Storybook side: storybookjs/storybook#6505 However, the ball is on the platform side, one should not expect that CRA will be used only if XYZ dependencies use exact same build of webpack, with respect to patch version, this is unreasonable. |
using "resolutions" is unfortunately not a viable solution when using npm |
Describe the bug
Upgrading
react-scripts
from 3.2 to either 3.3 or 3.4 causes the build to fail.Error:
npm ls webpack
output:Did you try recovering your dependencies?
yes
Which terms did you search for in User Guide?
webpack
webpack version
"a different version of webpack was detected "
etc
Steps to reproduce
Upgrade react-scripts when having @storybook in v5.2.5
Expected behavior
No failures. Quoting SemVer:
Actual behavior
Additional information
SKIP_PREFLIGHT_CHECK=true
seems to be a nasty workaround, and it doesn't help the fact that semver was brokeneject
is not an option for meThe text was updated successfully, but these errors were encountered: