Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
strange-middle-end
bump forthcoming)-vvvv
discussion about webpack upgrading issues below; TLDR I think upgrading is safe; does anyone else agree? or did i goof? 🎩 🍷 🐸Updates on the blocked dependency upgrades — webpack-5-related and history — as discussed in the prior 2 months (Feb/Bri and Jan/Bill)
history
Still blocked, for a couple of reasons:
react-router
and thereforeconnected-react-router
, as well, as both are incompatible with history v5, still depending on v4, which seems to have caused a good bit of confusion:I'm not sure the source of these issues; I'm also not sure why React Training didn't upgrade its packages — e.g.
react-router
,react-router-dom
— to use the new history version. But the v5 release of history notes this version of history "will serve as the foundation for the upcoming release of React Router version 6." So maybe we're looking at more sweeping upgrades to the react router ecosystem down the line and should hold off on upgrading history till those are complete?webpack v5
During his stint, Bri wrote:
Specifically, we can't perform the following upgrades:
This is still the case, but I did some digging into this to see if anything had changed since Bri's work and found the following, random, questionably helpful things:
In keeping with this comment, I locally performed the above 3 upgrades and was able to start the app; I threw an error in
App.js
, saw the error overlay as expected. I was able to build and serve (npm run serve
) the app without any apparent issues (though I could easily be missing something)error-overlay-webpack-plugin
lists webpack as a peer dependency, specifying version 4, but I'm unclear why. As far as I can tell, they do so because they depend onreact-dev-utils
(create-react-app
's webpack utilities), which are in flux due to CRA progressing through their own webpack upgrade: Webpack 5 support overview facebook/create-react-app#9994react-dev-utils
aren't given their own, dedicated section or checklist item on CRA's checklist on the above-linked issue, but issues have cropped up ad-hoc from userland (Webpack 5 support overview facebook/create-react-app#9994 (comment) and remove chalk from formatWebpackMessages facebook/create-react-app#10198) asreact-dev-util
dependents have experimented with upgrading to webpack 5 and run into problems. Which might explain whyerror-overlay-webpack-plugin
didn't cause any issues on upgrading strangeluv's webpack usage? The parts ofreact-dev-utils
that plugin uses might be webpack 5 compatible already. Very very much a guess on my parterror-overlay-webpack-plugin
depends on, which may have made it compatible with webpack 5, sinceerror-overlay-webpack-plugin
's dependency is set to bring in this change, a patch, automaticallyIf I'm right about any of the above, then
error-overlay-webpack-plugin
might not actually need any upgrading. That is,react-dev-utils
might be already webpack 5 compatible, which would mean no upgrades necessary (other than fixing the package'speerDependency
on webpack v4)error-overlay-webpack-plugin
: chore(dep): Upgrade react-dev-utils to support webpack5 (#67) gregberge/error-overlay-webpack-plugin#72 But you can see most of the work is to upgrade the example code, not the package itself. And the changes to the actual dependencies (root package.json) look to be incorrect (they removereact-error-overlay
as a dependency, which definitely breaks the package)So! All that said, do we feel ok about going ahead with the webpack 5 upgrades, perhaps dealing with some flux in local development due to CRA's ongoing webpack upgrading?