【问题标题】:react app fails when deployed to GitHub-pages but works fine on local host部署到 GitHub 页面时反应应用程序失败,但在本地主机上运行良好
【发布时间】:2021-05-17 08:48:43
【问题描述】:

https://github.com/naftalib/news-feed 得到一个空白页,开发工具在多个资源上给出了这个错误; 加载资源失败:服务器响应状态为 404(未找到)

【问题讨论】:

    标签: github-pages


    【解决方案1】:

    最后的问题是清理文件的时候误把.gitattributes文件从public文件夹中删除了。

    【讨论】:

      猜你喜欢
      • 2020-08-03
      • 2020-08-01
      • 2019-11-03
      • 1970-01-01
      • 1970-01-01
      • 2020-12-15
      • 1970-01-01
      • 2021-11-03
      • 2021-04-10
      相关资源
      最近更新 更多