Describe the bug
There is no way to use react-scripts with webpack 4 and Node LTS 20.11.0.
Webpack < 4.47.0 uses an insecure hash which is not supported in Node LTS 20.11.0. The fix was backported to webpack 4.47.0 in webpack/webpack#17628.
The latest version ^4 of react-scripts uses webpack 4.44.2. Version ^5 uses webpack 5 which is a breaking change.
I am trying to fix relayjs/relay-examples#322 without having to upgrade webpack which ought to be out of scope. I am able to do this for the todo example which does not use react-scripts but not for the issue-tracker example which does.
There should be a version of react-scripts ^4 which uses webpack 4.47.0.
Did you try recovering your dependencies?
No. Not relevant.
Which terms did you search for in User Guide?
None. I know what the issue is.
Environment
The relay-examples are using react-scripts not create-react-app.
Steps to reproduce
git clone git@github.com:relayjs/relay-examples.git
cd relay-examples/issue-tracker
yarn
yarn upgrade react-scripts@^4
yarn start
Expected behavior
It should have installed a version of react-scripts ^4 that depends on webpack 4.47.0 to include this security fix webpack/webpack#17628.
Actual behavior
It only depends on webpack 4.44.2.
Reproducible demo
See above.
Describe the bug
There is no way to use react-scripts with webpack 4 and Node LTS 20.11.0.
Webpack < 4.47.0 uses an insecure hash which is not supported in Node LTS 20.11.0. The fix was backported to webpack 4.47.0 in webpack/webpack#17628.
The latest version ^4 of react-scripts uses webpack 4.44.2. Version ^5 uses webpack 5 which is a breaking change.
I am trying to fix relayjs/relay-examples#322 without having to upgrade webpack which ought to be out of scope. I am able to do this for the
todoexample which does not usereact-scriptsbut not for theissue-trackerexample which does.There should be a version of react-scripts ^4 which uses webpack 4.47.0.
Did you try recovering your dependencies?
No. Not relevant.
Which terms did you search for in User Guide?
None. I know what the issue is.
Environment
The relay-examples are using
react-scriptsnotcreate-react-app.Steps to reproduce
git clone git@github.com:relayjs/relay-examples.gitcd relay-examples/issue-trackeryarnyarn upgrade react-scripts@^4yarn startExpected behavior
It should have installed a version of react-scripts ^4 that depends on webpack 4.47.0 to include this security fix webpack/webpack#17628.
Actual behavior
It only depends on webpack 4.44.2.
Reproducible demo
See above.