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

TypeError: Cannot read property 'PROCESS_ASSETS_STAGE_ADDITIONS' of undefined when using speed-measure-webpack-plugin #155

Open
ceisele-r opened this issue Jan 25, 2021 · 7 comments

Comments

@ceisele-r
Copy link

As soon as I add the smp.wrap(..) around my webpack config, I am getting the following exception:

(node:29480) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
[webpack-cli] TypeError: Cannot read property 'PROCESS_ASSETS_STAGE_ADDITIONS' of undefined
    at Proxy.<anonymous> (C:\proj\app\node_modules\copy-webpack-plugin\dist\index.js:462:45)
    at C:\proj\app\node_modules\speed-measure-webpack-plugin\WrappedPlugin\index.js:52:19
    at Hook.eval [as call] (eval at create (C:\proj\app\node_modules\tapable\lib\HookCodeFactory.js:19:10), <anonymous>:5:1)
    at Hook.CALL_DELEGATE [as _call] (C:\proj\app\node_modules\tapable\lib\Hook.js:14:14)
    at Compiler.newCompilation (C:\proj\app\node_modules\webpack\lib\Compiler.js:990:30)
    at C:\proj\app\node_modules\webpack\lib\Compiler.js:1033:29
    at eval (eval at create (C:\proj\app\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1)
    at C:\proj\app\node_modules\speed-measure-webpack-plugin\WrappedPlugin\index.js:44:9
    at Proxy.<anonymous> (C:\proj\app\node_modules\webpack\lib\DllReferencePlugin.js:80:12)
    at C:\proj\app\node_modules\speed-measure-webpack-plugin\WrappedPlugin\index.js:40:16

As you can see, we are using the copy-webpack-plugin.
Without the smp.wrap(...), everything works as expected.

The environment is:

  • node v12.19.0
  • webpack 5.16.0
  • copy-webpack-plugin 7.0.0
  • webpack-cli 4.4.0
@takhello
Copy link

same situation

@takhello
Copy link

[webpack-cli] TypeError: Cannot read property 'PROCESS_ASSETS_STAGE_ADDITIONS' of undefined

@ceisele-r
Copy link
Author

Relates to #149

@caseyjhol
Copy link

Getting the same error with:

  • node v14.10.0
  • webpack v5.18.0
  • webpack-cli v4.4.0

@marcobouwmeester
Copy link

I am having the same issue. It seems to be caused by copy-webpack-plugin v7.0.0 . Downgrading back to v6.0.4 seems to resolve the error for now.

@Kocal
Copy link

Kocal commented Jan 31, 2021

I have the same issue with favicons-webpack-plugin at version ^5.0.0-alpha.11

@zhangzippo
Copy link

i have the same issue too

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

6 participants