-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Webpack v5.22.0` breaks HtmlWebpackLoader #1603
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
only updated webpack, from 5.21.2 to 5.22.0 |
UPDATE: false alarm. Upgrading html-webpack-plugin from 4.5.1 to 5.1.0 fixed the issue for us. We confirm there is a breaking behaviour between webpack 5.21.2 and 5.22.0.
Very basic usage for our setup. new HtmlWebpackPlugin({ template: 'index.ejs' }) |
This comment has been minimized.
This comment has been minimized.
webpack/webpack#12687 (comment), please update |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I have also encountered the above problems. There are two solutions:
or
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
As you can see the problem in |
@mixalistzikas just add the following into your project package.json and hope that its compatible^^
|
This comment has been minimized.
This comment has been minimized.
Upgrading html-webpack-plugin from 4.5.1 to 5.1.0 fixed the issue for us. 😀👍 |
This comment has been minimized.
This comment has been minimized.
I released a fix as |
That's fantastic, thanks. I wasn't using v5 originally due to some other bug which is perhaps now fixed separately. 4.5.2 hopefully gets us out of this scrape and I'll come back if there's an issue with the current V5 |
It's only thing that finally helped: using @4.5.2. Giving: and etc. Please update we. |
See here, where webpack dont give a single sh*t: webpack/webpack#12689
Bug report
Updating from 5.21.2 to 5.22.0 makes my build spit out the following errors for all my
HtmlWebpackPlugins
:message: Error: The loader "<path>\\node_modules\\html-webpack-plugin\\li b\\loader.js!<path>\\src\\app\\app.html" didn't return html.\n+
Relevant webpack config
rest of stack trace:
What is the expected behavior?
Not to explode, it doesn't in 5.21.2 but does in 5.22.0
Other relevant information:
webpack version: 5.22.0 (not 5.21.2)
Node.js version: 12, 14
Operating System: Windows, Linux
The text was updated successfully, but these errors were encountered: