在这篇文章中: https://create-react-app.dev/docs/deployment/
你链接到了这篇Heroku文章: https://blog.heroku.com/deploying-react-with-zero-configuration
那篇文章(来自2016年)似乎已经过时了。特别是,它建议使用的构建包似乎不再支持最新的Heroku堆栈。当我尝试使用它时,我看到了以下内容:
remote: =====! create-react-app-buildpack has reached end-of-life 🌅
remote: This build may succeed, but the buildpack is no longer maintained.
remote: On the Heroku-22 stack and beyond, this may fail to build at all.
remote:
remote: Please consider migrating to https://nextjs.org or https://remix.run to develop React apps which are deployable using Heroku's Node.js buildpack https://github.com/heroku/heroku-buildpack-nodejs, or you may develop your own create-react-app deployment with Node.js and Nginx buildpacks.
remote:
然后稍后:
emote: =====> Detected Framework: Static HTML
remote: Stack heroku-22 is not supported!
remote: ! Push rejected, failed to compile React.js (create-react-app) multi app.
remote:
remote: ! Push failed
2条答案
按热度按时间1u4esq0p1#
你好,有人在处理这个问题吗?如果没有,我想接手。
hkmswyz62#
你好。有任何更新吗?