ReactJS: ошибка при запуске сервера
$ yarn start
Failed to compile.
Cannot read property 'compilation' of undefined
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with signal "SIGTERM".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "start-js" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Я использую Ubuntu 18.04.4 LTS. Иногда это работало обычно после перезапуска, я сопоставил все версии node, npm и yarn. Я попытался удалитьnode_modules
. И иногда он также показывает эту ошибку.
{ [Error: EPIPE: broken pipe, write] errno: -32, code: 'EPIPE', syscall: 'write' }
В package.json scripts
"start-js": "react-scripts start",
"start": "HTTPS=true PORT=8100 REACT_APP_OPEN_TO_URL=https://xyz.University.com/localhost npm-run-all -p watch-css start-js",
1 ответ
Вам необходимо установить этот плагин, указав версию вашего веб-пакета
npm install --save-dev uglifyjs-webpack-plugin@1
Для получения дополнительной информации вы можете обратиться к этому URL- https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/360