1

我正在尝试将我的应用程序部署到 git 页面,但 GitHub 页面的状态失败。

当我开始“ pages build and deployment”行动时,我有一个下一个问题:

1) Build > Checkout > Fetching submodules:
  /usr/bin/git submodule sync --recursive
  /usr/bin/git -c protocol.version=2 submodule update --init --force --depth=1 --recursive
  Error: fatal: No url found for submodule path 'dist' in .gitmodules
  Error: The process '/usr/bin/git' failed with exit code 128
2)Deploy > Deploy to github pages:
Error: Error: No uploaded artifact was found! 
Please check if there are any errors at build step.

我做错什么了吗?

4

1 回答 1

1

检查.gitmodules文件的内容:

如果它只包含一个条目[submodule "dist"],带有模块路径dist,没有 URL,
则完全删除.gitmodules文件,添加并提交。
(注意:和这里一样,检查你是否有一个 dist(没有尾随斜杠)条目,如果有,则将其删除)。

然后再次尝试部署过程。

于 2022-01-30T01:01:27.650 回答