sp-build-tasks
sp-build-tasks copied to clipboard
Gulp build --prod --webpack error
Hello!
I faced with error when using this command:
Gulp build --prod --webpack
Error: Cannot find module 'copy-webpack-plugin'
Require stack:
TypeError: Cannot read property 'get' of undefined
at C:_git\IPMS\Src\Front\node_modules\webpack\lib\DefinePlugin.js:292:38
at SyncHook.eval [as call] (eval at create (C:_git\IPMS\Src\Front\node_modules\tapable\lib\HookCodeFactory.js:19:10),
What it can be?
Thanks.
PS. I have installed a module 'copy-webpack-plugin' but have the same error.
The problem was in version of webpack. I used a 5th, but this package can't work with it=) So I install v4 of webpack=)