Open sibelius opened 4 years ago
Hey @sibelius — thanks for flagging. Can you give me some repro steps for this? I haven't seen this error
not sure if it is related to https://github.com/shellscape/webpack-plugin-serve
I had the same error.
This commit removes the speed-measure-webpack-plugin from development and so that I can upgrade webpack: https://github.com/xcv58/Tab-Manager-v2/commit/75727bc82f84f0e3c41bf17a137021d9362b5013
And this line causes the bug: https://github.com/webpack/webpack/blob/2346f6b245a92f317535018129260d7c015734c9/lib/HotModuleReplacementPlugin.js#L191-L193
I guess the smp.wrap
generate the WrappedPlugin
for the plugin in webpack config. The generated plugin cause the condition (compilation.compiler !== compiler)
be true.
Here is a cleaner reproduce PR: https://github.com/xcv58/react-starter-boilerplate-hmr/pull/1/files
I noticed this error when adding SMP to a storybook wepback config, if that's helpful at all.
I also have this problem, how can I solve it?
Been banging my head against a wall on this issue for the last 3 days now. Any movement here?
My project builds fine without this plugin, but when I use it as the document shows, it has the error that all the less or file has build fail like this:
ERROR in ./src/stylesheets/element.css No template for dependency: ModuleHotAcceptDependency @ ./src/pages/home/container/detailContainer.js 13:0-42 @ ./src/pages/home/routes.js 19:0-58 222:13-28 @ ./src/pages/home/index.tsx 16:0-43 113:14-29
its seems this pulgin conflicts with less loader or css loader??
`
Could remove the HotModuleReplacementPlugin
as plugin, and instead pass --hot
when calling webpack serve