Skip to content
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

Plugin breaks with webpack serve watch mode + HardSourceWebpackPlugin #46

Closed
ganapativs opened this issue Jul 24, 2018 · 2 comments
Closed

Comments

@ganapativs
Copy link

ganapativs commented Jul 24, 2018

Plugin works nicely for initial build, but breaks when some file is changed and webpack/webpack-serve is watching for changes.

This happens only when HardSourceWebpackPlugin is included.

ℹ 「hot」: webpack: Compiling Done
ℹ 「wdm」:    1410 modules
ℹ 「wdm」: Compiled successfully.
ℹ 「hot」: webpack: Bundle Invalidated
ℹ 「wdm」: Compiling...
[hard-source:core] HardSourceWebpackPlugin is using 177 MB of disk space.
✖ 「wdm」: TypeError: Cannot read property 'call' of undefined
    at Object.exports.call (/Users/guns/oooo/node_modules/hard-source-webpack-plugin/lib/util/plugin-compat.js:170:17)
    at Proxy.run (/Users/guns/oooo/node_modules/hard-source-webpack-plugin/lib/SystemArchetype.js:184:20)
    at args (/Users/guns/oooo/node_modules/speed-measure-webpack-plugin/WrappedPlugin/index.js:52:19)
    at _fn7.then._result7 (eval at create (/Users/guns/oooo/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:51:1)

Also if I remove speed-measure-webpack-plugin, everything works fine. let me know if you need more info.

@ganapativs ganapativs changed the title Breaking with webpack serve watch mode + HardSourceWebpackPlugin Plugin breaks with webpack serve watch mode + HardSourceWebpackPlugin Jul 24, 2018
@ganapativs
Copy link
Author

Just realised there is already a issue for this - #44

@stephencookdev
Copy link
Owner

Okay cool, thanks for raising @ganapativs :) I'll close this as a duplicate of #44

and try my best to find some time to raise a code fix for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants