-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
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
new HtmlWebpackPlugin({
template: path.resolve(__dirname, "src", "app", "app.html"),
templateParameters: {
pages
},
filename: 'app.html',
scriptLoading: "defer",
chunks: ['app']
})
rest of stack trace:
' - index.js:336 HtmlWebpackPlugin.evaluateCompilationResult\n' +
' [Useroo]/[html-webpack-plugin]/index.js:336:24\n' +
' \n' +
' - index.js:243 \n' +
' [Useroo]/[html-webpack-plugin]/index.js:243:22\n' +
' \n' +
' - runMicrotasks\n' +
' \n' +
' - task_queues.js:93 processTicksAndRejections\n' +
' internal/process/task_queues.js:93:5\n' +
' \n' +
' - async Promise.all\n' +
' \n' +
' - async Promise.all\n' +
' \n'
},
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
mixalistzikas, takhello, cexbrayat, zangguojun and mufasa71Kiikuragemixalistzikasmixalistzikasmixalistzikas
Metadata
Metadata
Assignees
Labels
No labels