简体   繁体   English

使用顺风部署问题 heroku 反应应用程序

[英]react app with tailwind deploying issue heroku

heroku says heroku 说

   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.
   

-----> Build Running build -----> 构建运行构建

   > 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]
   
   

-----> Build failed -----> 构建失败

   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
   

, Push rejected. ,推送被拒绝。 failed to compile Node.js app.无法编译 Node.js 应用程序。 ! Push failed推送失败

here is my code https://github.com/sardor1215/test/tree/master这是我的代码https://github.com/sardor1215/test/tree/master

try to specify node engine in your package.json尝试在 package.json 中指定节点引擎
for example例如

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

better try to use the same version that on your locale machine最好尝试使用与您的语言环境机器上相同的版本
link to heroku help: https://help.heroku.com/6235QYN4/why-is-my-node-js-build-failing-because-of-no-matching-node-versions链接到 heroku 帮助: https://help.heroku.com/6235QYN4/why-is-my-node-js-matching-failingnode-ca

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM