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

Incompatibility with hard-source-webpack-plugin… #21

Open
tdd opened this issue Mar 5, 2018 · 11 comments
Open

Incompatibility with hard-source-webpack-plugin… #21

tdd opened this issue Mar 5, 2018 · 11 comments

Comments

@tdd
Copy link

tdd commented Mar 5, 2018

Hey there!

This plugin is awesome, unfortunately it seems to break another fav plugin of mine, hard-source-webpack-plugin, that is currently the most effective caching layer Webpack has (including v4). First run will work fine, later runs, once a cache exist, will break when this plugin exists.

This may be due to its not properly using v4’s plugin API yet? No idea. Still, this prevents me from using it everywhere right now. It'd be super sweet if you could coordinate with HS' author to figure this out.

Thanks a ton!

@stephencookdev
Copy link
Owner

Hey @tdd - thanks for raising this :)

If you're using SMP with webpack v4, then yeah - there's no guarantee that anything will work, just yet! Hopefully I should get the time to add support soon.

If you're using it with another webpack version, though, then this should work. I'll have a look tonight, and see what the issue is.

@stephencookdev
Copy link
Owner

Right, so I've found an issue with HardSourceWebpackPlugin, which I've raised a fix for: #23

I'm just worried it doesn't perfectly describe what you described in this issue... Could you check out the branch and see if that fixes it for you?

And if not, could you give me a bit more info? (Specifically, which webpack version, smp version, and HardSourceWebpackPlugin version you're using)

@stephencookdev
Copy link
Owner

I'll assume this is complete with #23 (there are some tests verifying this now with #24)

But let me know / reopen this if you're seeing any more issue

@tdd
Copy link
Author

tdd commented Mar 8, 2018 via email

@piotrpalek
Copy link

Doesn't work for me with hard-source-webpack-plugin as well

@FabianFrank
Copy link

FabianFrank commented Apr 2, 2019

This doesn't seem to be fixed:

[hard-source:core] Tracking environment changes with package-lock.json.
[hard-source:core] HardSourceWebpackPlugin is reading from and writing to a confighash path: /Users/fabian/projects/web-builder/node_modules/.cache/hard-source/bc1fef381bebecdee4df1ec889d2f86bec404e8030b8597e10ecb6203c756867
✖ 「wdm」: TypeError: Cannot read property 'call' of undefined
    at Object.exports.call (/Users/fabian/projects/web-builder/node_modules/hard-source-webpack-plugin/lib/util/plugin-compat.js:171:17)
    at Proxy.run (/Users/fabian/projects/web-builder/node_modules/hard-source-webpack-plugin/lib/SystemArchetype.js:184:20)
    at args (/Users/fabian/projects/web-builder/node_modules/speed-measure-webpack-plugin/WrappedPlugin/index.js:52:19)
    at _promise2.then._result2 (eval at create (/Users/fabian/projects/web-builder/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:28:1)```
$ npm ls
...
├─┬ [email protected]
...
├─┬ [email protected]

@esynaps
Copy link

esynaps commented May 29, 2019

Not fixed in 1.3.1 with webpack watch

 WAIT  Compiling...09:04:54
TypeError: Cannot read property 'call' of undefined
    at ManifestPlugin.<anonymous> (C:\www\rdv-v2.e-synaps.com\node_modules\webpack-manifest-plugin\lib\plugin.js:191:53)
    at args (C:\www\rdv-v2.e-synaps.com\node_modules\speed-measure-webpack-plugin\WrappedPlugin\index.js:52:19)
    at _next1 (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1)
    at _err1 (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:25:1)
    at func.apply.argsButLast.map.concat.callbackArgs (C:\www\rdv-v2.e-synaps.com\node_modules\speed-measure-webpack-plugin\WrappedPlugin\index.js:44:9)
    at Proxy.emit (C:\www\rdv-v2.e-synaps.com\node_modules\@symfony\webpack-encore\lib\friendly-errors\asset-output-display-plugin.js:27:9)
    at args (C:\www\rdv-v2.e-synaps.com\node_modules\speed-measure-webpack-plugin\WrappedPlugin\index.js:40:16)
    at _next0 (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:21:1)
    at _err0 (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:34:1)
    at func.apply.argsButLast.map.concat.callbackArgs (C:\www\rdv-v2.e-synaps.com\node_modules\speed-measure-webpack-plugin\WrappedPlugin\index.js:44:9)
    at Proxy.emit (C:\www\rdv-v2.e-synaps.com\node_modules\@symfony\webpack-encore\lib\webpack\delete-unused-entries-js-plugin.js:46:9)
    at args (C:\www\rdv-v2.e-synaps.com\node_modules\speed-measure-webpack-plugin\WrappedPlugin\index.js:40:16)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:30:1)
    at Compiler.emitAssets (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compiler.js:441:19)
    at onCompiled (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Watching.js:50:19)
    at hooks.afterCompile.callAsync.err (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compiler.js:631:15)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
    at compilation.seal.err (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compiler.js:628:31)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\Hook.js:154:20)
    at hooks.optimizeAssets.callAsync.err (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compilation.js:1329:35)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\Hook.js:154:20)
    at hooks.optimizeChunkAssets.callAsync.err (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compilation.js:1320:32)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\Hook.js:154:20)
    at hooks.additionalAssets.callAsync.err (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compilation.js:1315:36)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\Hook.js:154:20)
    at hooks.optimizeTree.callAsync.err (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compilation.js:1311:32)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\Hook.js:154:20)
    at Compilation.seal (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compilation.js:1248:27)
    at compilation.finish.err (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compiler.js:625:18)
    at hooks.finishModules.callAsync.err (C:\www\rdv-v2.e-synaps.com\node_modules\webpack\lib\Compilation.js:1171:4)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\www\rdv-v2.e-synaps.com\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)

@stephencookdev
Copy link
Owner

Thanks for your comments everyone. Will reopen and try and find some time to investigate

But I'm a little stretched for time with this, so would appreciate if anyone else has time to poke around at the failure too

@bovas85
Copy link

bovas85 commented Apr 23, 2020

any update on this? Is there a way to make this work otherwise?

@hunnble
Copy link

hunnble commented Mar 9, 2021

still not working:

@soredtrose
Copy link

still not working well:
[email protected]
[email protected]
It works when first packaged, it says something wrong when I change the code.

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

8 participants