Канон Шредингера (31 янв 2026)

Фантастический рассказ. О тульпах, людях и богах.

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

Больше
4 года 9 мес. назад #1 от Вебмастер
Обновляю 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)



Есть идеи?

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Dev banner 3
Больше
4 года 9 мес. назад - 4 года 9 мес. назад #2 от evgenij
Попробуй так:
Code:
rm -rf node_modules rails assets:clobber yarn rails assets:precompile

github.com/reactjs/react-rails/issues/997

Have a lot of fun!
Последнее редактирование: 4 года 9 мес. назад пользователем evgenij.

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Работает на Kunena форум