$ 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。有时它通常在重新启动后正常工作,我已经将所有节点,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",
答案 0 :(得分:0)
您需要安装此插件以指定您的Webpack版本
npm install --save-dev uglifyjs-webpack-plugin@1
有关更多信息,您可以引用此网址https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/360