This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
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.
Overview
I tried to upgrade webpack to v5, but encountered some errors that I couldn't figure out how to get past.
This PR contains the code that I was working on, prior to me backing away from this effort.
Error 1
This appears to be related to html-webpack-plugin, but I can't figure out what I'm supposed to do to fix the error beyond upgrading to the latest version of both html-webpack-plugin and webpack. I did that and I still get the error.
Error 2
I don't have any idea what is causing this error, but I don't want to mess with paths without understanding how all the webpack configuration works. I'm not at all familiar with webpack, so I'm backing away from this.
Iterating locally
To reproduce the errors shown above, you can run these commands locally:
I found these commands in the config.yml file for CircleCI.
dependencies
The following dependency versions are incompatible with webpack v4, but are compatible with webpack v5:
useful commands
npm outdated
can be used to identify out of date dependencies.when to upgrade to webpack v5
https://webpack.js.org/blog/2020-10-10-webpack-5-release/#so-when-is-the-time-to-upgrade