speed-measure-webpack-plugin
speed-measure-webpack-plugin copied to clipboard
Cannot read property 'hash' of undefined
"html-webpack-plugin": "^4.0.0-beta.2",
get error:
Failed to compile:
TypeError: Cannot read property 'hash' of undefined
-
compiler.js:292 childCompiler.compileTemplates.then [imt]/[html-webpack-plugin]/lib/compiler.js:292:30
-
next_tick.js:68 process._tickCallback internal/process/next_tick.js:68:7
-
loader.js:745 Function.Module.runMain internal/modules/cjs/loader.js:745:11
-
node.js:279 startup internal/bootstrap/node.js:279:19
-
node.js:752 bootstrapNodeJSCore internal/bootstrap/node.js:752:3
Just encountered the same error
With "html-webpack-plugin": "^4.0.0-beta.5"
, issue remains same.
Related issue in native repo - html-webpack-plugin
I suspect the issue may be linked to this other issue with html-webpack-plugin
A temporary solution, temporarily ignore the detection of HtmlWebpackPlugin
const SpeedMeasurePlugin = require("speed-measure-webpack-plugin");
const smp = new SpeedMeasurePlugin();
const config = smp.wrap({
mode: 'production',
entry: [paths.appIndexJs],
output:{ // omitting},
plugins:[
// new HtmlWebpackPlugin({ // omitting}), // remove
MyPlugin(), // omitting
]
})
config.plugins.unshift(
new HtmlWebpackPlugin({ // omitting }),
)
module.exports = config
I meet the same error with "html-webpack-plugin": "^4.0.0-beta.5". How to solve?
Greetings guys,
First, thank you for the awesome plugin. Very helpful.
Any updates regarding this issue?
A temporary solution, temporarily ignore the detection of HtmlWebpackPlugin
const SpeedMeasurePlugin = require("speed-measure-webpack-plugin"); const smp = new SpeedMeasurePlugin(); const config = smp.wrap({ mode: 'production', entry: [paths.appIndexJs], output:{ // omitting}, plugins:[ // new HtmlWebpackPlugin({ // omitting}), // remove MyPlugin(), // omitting ] }) config.plugins.unshift( new HtmlWebpackPlugin({ // omitting }), ) module.exports = config
but when I config link this, there is no result about how much time of the plugin speed
Any updates on this?
I have meet the same problem, any uodates?
same here
same problem here
so I got another issue
URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'
at decodeURIComponent (<anonymous>)
URIError: Failed to decode param '/%PUBLIC_URL%/manifest.json'
at decodeURIComponent (<anonymous>)
http://www.arbaouimehdi.com/how-to-solve-the-cannot-read-property-hash-of-undefined/
so I got another issue
URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico' at decodeURIComponent (<anonymous>) URIError: Failed to decode param '/%PUBLIC_URL%/manifest.json' at decodeURIComponent (<anonymous>)
same error
see https://github.com/mzgoddard/hard-source-webpack-plugin/issues/416
It might solve your problem
Same problem. Any solution?
same problem any solution?