當我部署到 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.
我正在使用這個構建包:
https://github.com/mars/create-react-app-buildpack
但是heroku將不再支持它。我不知道如何將我的 reactapp 遷移到 nextjs 或 remix,有人知道支持更新版本 heroku 的替代 buildpack 嗎?
uj5u.com熱心網友回復:
您使用的 buildpack 已棄用,并且不適用于 Heroku-22。我所做的簡單解決方案是推遲升級 Heroku 堆疊,直到發布用于 Create-React-App 的新 buildpack。不過Heroku-18 已被棄用,因此您應該升級到 Heroku-20。
heroku stack:set heroku-20
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/495623.html
