Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 应用程序中出现错误,无法提供您的页面。正在尝试在Heroku中打开应用程序_Reactjs_Heroku_Npm - Fatal编程技术网

Reactjs 应用程序中出现错误,无法提供您的页面。正在尝试在Heroku中打开应用程序

Reactjs 应用程序中出现错误,无法提供您的页面。正在尝试在Heroku中打开应用程序,reactjs,heroku,npm,Reactjs,Heroku,Npm,这是我第一次在我的Heroku上上传ReactJS项目,也是第一次,我收到一个错误,说应用程序错误。应用程序中出现错误,无法提供您的页面。如果您是应用程序所有者,请查看日志以了解详细信息。您可以在Heroku CLI中使用命令Heroku logs--tail 即使在运行了我的heroku日志--tail之后,同时无法“获取”的路径在本地服务器上也可以正常工作,我得到了这个 2020-11-19T23:26:32.010308+00:00 app[web.1]: ℹ 「wds」: webpack

这是我第一次在我的Heroku上上传ReactJS项目,也是第一次,我收到一个错误,说应用程序错误。应用程序中出现错误,无法提供您的页面。如果您是应用程序所有者,请查看日志以了解详细信息。您可以在Heroku CLI中使用命令
Heroku logs--tail
即使在运行了我的heroku日志--tail之后,同时无法“获取”的路径在本地服务器上也可以正常工作,我得到了这个

2020-11-19T23:26:32.010308+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-11-19T23:26:32.010497+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-11-19T23:26:32.010668+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-11-19T23:26:32.011053+00:00 app[web.1]: Starting the development server...
2020-11-19T23:26:32.011055+00:00 app[web.1]:
2020-11-19T23:26:32.160629+00:00 heroku[web.1]: Process exited with status 0
2020-11-19T23:26:32.220302+00:00 heroku[web.1]: State changed from starting to crashed
2020-11-19T23:26:33.470699+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=streamlitng.herokuapp.com request_id=6f2176e4-4ebb-499e-83ad-a53de00c96d3 fwd="105.235.201.122" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T23:26:38.273134+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=streamlitng.herokuapp.com request_id=72644511-efb9-4d29-b97a-b53e2ad69a0f fwd="105.235.201.122" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T23:28:38.683658+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=streamlitng.herokuapp.com request_id=78a32710-accf-463a-ab6e-733f903c0dfe fwd="105.235.201.122" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T23:28:40.993980+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=streamlitng.herokuapp.com request_id=802fd0db-8b94-4dae-ad17-e54fae5bbcc8 fwd="105.235.201.122" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T23:31:40.274828+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=streamlitng.herokuapp.com request_id=84aeec4a-22cc-4fef-ad28-c81cd3bfda97 fwd="105.235.201.122" dyno= connect= service= status=503 bytes= protocol=https
2020-11-19T23:31:43.369369+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=streamlitng.herokuapp.com request_id=4aa4ca3d-f2ce-40ab-a42b-79ba574942a3 fwd="105.235.201.122" dyno= connect= service= status=503 bytes= protocol=https```

我不认为您可以在没有任何额外配置的情况下部署react,因为它只有一个开发服务器。你可能对哦感兴趣真的吗?谢谢,这很有帮助