Обновляю webpacker как рассказано
здесь
:
Code:
yarn upgrade @rails/webpacker --latest
получаю в итоге следующее:
Code:
[Webpacker] Compiling...
[Webpacker] Compilation failed:
[webpack-cli] Failed to load '/home/sergy/b2b/config/webpack/development.js' config
[webpack-cli] TypeError: Cannot read property 'plugins' of undefined
at Object.<anonymous> (/home/sergy/b2b/config/webpack/environment.js:4:13)
at Module._compile (/home/sergy/b2b/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (/home/sergy/b2b/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/home/sergy/b2b/config/webpack/development.js:3:21)
at Module._compile (/home/sergy/b2b/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
Rendered layout layouts/application.html.erb (Duration: 9914.6ms | Allocations: 17341)
Есть идеи?