-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Several plugins I have tried to use alongside this plugin break when webpack starts an incremental build after a code change. The issue seems to be that all the hooks registered on the webpack 4 compiler.hooks
object are missing in the incremental compile. The plugins then fail with errors like TypeError: Cannot read property 'call' of undefined
. Removing the speed-measure-webpack-plugin fixes the issue.
Nilos, talha5389, artivilla, jspears, FabianFrank and 5 more
Metadata
Metadata
Assignees
Labels
No labels
Activity
stephencookdev commentedon Jun 1, 2018
Hey @mcintyret - which plugins are you using that seem to be failing?
Thanks for raising :)
mcintyret commentedon Jun 2, 2018
I saw the issue with both hard-source-webpack-plugin and fork-ts-checker-webpack-plugin
stephencookdev commentedon Jun 4, 2018
Okay cool, thanks. I'll try my best to get some time this week to have a look at those and see why they're having issues 🤔
rustjson commentedon Jul 20, 2018
Break incremental builds too:
Nilos commentedon Oct 9, 2018
@stephencookdev I really like this plugin any progress on this? Any pointers to look at for fixing this?
stephencookdev commentedon Oct 10, 2018
So the issue of
childCompilation.assets[outputName].source()
I believe might actually be a separate root issue...But the issue of the
compiler.hooks
missing, has 2 possible causesEither, this
wrapHooks
call is returning something stupid.Or,
compiler
itself isn't being wrapped correctly, so it's not actually a proxy that hits thatwrapHooks
function as we would expect.Longer term, I really want to expand our integration tests to be able to check incremental builds, as well as just plain builds. It makes testing + fixing issues a lot easier, if nothing else...
Unfortunately I'm really struggling to find time to work on this repo at the moment! Any help would be massively appreciated 🙏 I'll try my best to write up a decent CONTRIBUTING.md in the next couple of days
artivilla commentedon Nov 13, 2018
Similar issue with webpack-manifest-plugin@2.0.4, speed-measure-webpack-plugin@1.2.3:
My manifest options are set as follows:
And getting the following err after the first build:
Hard to reproduce such a large app but hopefully the additional logs will help debug.
hutber commentedon Nov 24, 2019
I thought I would chip in here and add my 2-cents.
Is occurring for me when using
SPM
plugin with nextjs and a custom webpack config atnext.config.js
as follows:I will keep playing and update if I get any ideas where/why it is falling over.
xccjk commentedon Nov 13, 2020
Is there any solution to this problem now?
BLamy commentedon Jun 22, 2021
I hacked this into
node_modules/webpack-manifest-plugin/lib/plugin.js
techimist commentedon Mar 10, 2022
Is there any update on this issue? I am also facing the same issue with ts-fork plugin.