Closed louischristopherchen closed 2 years ago
react-app-rewired current no active. I recommand to use craco. https://github.com/gsoft-inc/craco/issues/313
@TimRChen CRACO has the same issue. It does not work with CRA@5
I believe the original issue was that the version number for react-scripts at the time had the -next.37
ending, and hence the version number wasn't being parsed from the version string. Now that react-scripts 5 has actually been released this should not continue to be an issue and react-app-rewired should work.
Note also: this is npm itself failing to parse the react-scripts package version as satisfying the requirement for being >= 2.1.3, not something that react-app-rewired itself is failing. There isn't much we can do if npm's version parsing is broken when there is a suffix. Hence also why it affects other packages like CRACO - it's not the individual packages that have the problem, it's the package manager itself.
Closing this - can re-open if it does turn out to be a bug with this repo.
I just want to start my new project with webpack 5 and rewire. I have checked the issue for CR4, and they said it's work perfectly. I want to make sure it's work fine with webpack 5.