带有顺风部署问题的React应用程序heroku

yrefmtwq  于 2022-11-13  发布在  React
关注(0)|答案(1)|浏览(196)

希鲁库说

added 1605 packages, and audited 1606 packages in 15s
   
   223 packages are looking for funding
     run `npm fund` for details
   
   6 high severity vulnerabilities
   
   To address all issues (including breaking changes), run:
     npm audit fix --force
   
   Run `npm audit` for details.

-----〉生成正在运行生成

> frontend@0.1.0 build
   > react-scripts build
   
   Creating an optimized production build...
   Failed to compile.
   
   static/css/main.a8ac7e21.css from Css Minimizer plugin
   /tmp/build_e79f02b1/static/css/main.a8ac7e21.css:2532:73: Unknown word [webpack://./src/index.css:3,0][static/css/main.a8ac7e21.css:2532,73]

-----〉生成失败

We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys
   
   Some possible problems:
   
   - Node version not specified in package.json
     https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
   
   Love,
   Heroku

!推送被拒绝,无法编译Node.js应用程序。!推送失败
这是我代码https://github.com/sardor1215/test/tree/master

kmbjn2e3

kmbjn2e31#

尝试在package.json中指定节点引擎
例如,

"engines": {
  "node": "14.17.5"
}

最好尝试使用与您的区域设置计算机上相同的版本
链接到Heroku帮助:https://help.heroku.com/6235QYN4/why-is-my-node-js-build-failing-because-of-no-matching-node-versions

相关问题