speed-measure-webpack-plugin icon indicating copy to clipboard operation
speed-measure-webpack-plugin copied to clipboard

Error when used with html-webpack-plugin@v4

Open alitaheri opened this issue 4 years ago • 4 comments

ERROR in   TypeError: Cannot read property 'hash' of undefined

  - compiler.js:265
    [aurox-client-web]/[html-webpack-plugin]/lib/compiler.js:265:30

  - runMicrotasks

  - task_queues.js:93 processTicksAndRejections
    internal/process/task_queues.js:93:5

When I disable the speed-measure-webpack-plugin the error goes away, might be related to:

https://dev.to/jantimon/html-webpack-plugin-4-has-been-released-125d#performance

alitaheri avatar Mar 23 '20 19:03 alitaheri

Can you check that this happens with 1.3.3?

stephencookdev avatar Mar 23 '20 19:03 stephencookdev

This is weird, I had updated my dependencies and got that error. But to be safe I cleaned my node_modules and reinstalled everything. and the issue is gone.

Sorry for the trouble, but I guess this is good for future reference in case someone else gets the same error.

alitaheri avatar Mar 24 '20 08:03 alitaheri

@stephencookdev Wait actually, it came back. seems like it happens randomly. I'm guessing it has something to do with the new apis the plugin has started using from version 4. And maybe this tool interferes with them.

alitaheri avatar Mar 24 '20 09:03 alitaheri

latest libs, latest webpack, same error as two years ago

AuthorProxy avatar Nov 06 '20 22:11 AuthorProxy