小编Jes*_*man的帖子

尝试将 React 应用程序部署到 heroku 时出现错误

我正在尝试学习如何将 React 应用程序部署到 heroku,但每当我进行测试运行时,我都会收到错误消息。

我一直在使用以下命令来创建一个 React 应用程序并将其部署到 heroku:

 $ npx create-react-app struttingpeacocks

 $ cd struttingpeacocks

 $ git init

 $ heroku create struttingpeacocksapp --buildpack https://github.com/mars/create-react-app-buildpack.git

 $ git add .

 $ git commit -m "create-react-app"

 $ git push heroku master
Run Code Online (Sandbox Code Playgroud)

但是,当我这样做时,以下代码将运行并在最后出现错误消息:


 $ git push heroku master

 Counting objects: 18, done.

 Delta compression using up to 8 threads.

 Compressing objects: 100% (18/18), done.

 Writing objects: 100% (18/18), 88.11 KiB | 3.26 MiB/s, done.

 Total 18 (delta 0), reused 0 (delta 0)

 remote: Compressing …
Run Code Online (Sandbox Code Playgroud)

deployment heroku reactjs react-native

5
推荐指数
1
解决办法
8935
查看次数

标签 统计

deployment ×1

heroku ×1

react-native ×1

reactjs ×1