【问题标题】:Deploy on Github pages React在 Github 页面上部署 React
【发布时间】:2022-11-19 18:59:09
【问题描述】:

我正在研究 React 并且在部署到 github-pages 时遇到问题。

一切都在网络服务器上运行,但部署时会产生错误。

[yaml](https://i.stack.imgur.com/6bdnz.png)
[code](https://i.stack.imgur.com/TYYRF.png)
[error](https://i.stack.imgur.com/24Q3W.png)

【问题讨论】:

    标签: reactjs github deployment github-actions github-pages


    【解决方案1】:

    您尚未配置项目以支持绝对导入。尝试使用相对导入,例如“../components/Profile/Profile.jsx”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-03
      • 2021-12-25
      • 2022-01-20
      • 2023-02-24
      • 2022-10-05
      • 1970-01-01
      相关资源
      最近更新 更多