简体   繁体   English

React 部署到 Github 页面的问题

[英]Problem with React Deployment to Github Pages

I am doing exactly like in this instruction https://create-react-app.dev/docs/deployment/#github-pages-https-pagesgithubcom我做的和这个指令中的完全一样

But still can't see my project on this url https://vladislav747.github.io/ReactChat/但是在这个 url https://vladislav747.github.io/ReactChat/上仍然看不到我的项目

Code here https://github.com/Vladislav747/ReactChat代码在这里https://github.com/Vladislav747/ReactChat

Can't understand what am i doing wrong?不明白我在做什么错?

I am thinking about these issues of problem(See it in Terminal)我正在考虑这些问题(在终端中查看)

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

Because of these lines - i think that it is hosted not on root route.由于这些线路 - 我认为它不是托管在根路由上。

you've a typo in your package.json你的 package.json 有错字

homepaage主页

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

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