Pages build error: Failed: error occurred while updating repo submodules

I got an error while building ccloudflare pages : Failed: error occurred while updating repo submodules. This error appears in Cloning git repository stage. Does anyone has ideas about this issue?


This usually happens when a submodule is linking to a private repository. We cannot see it therefore we cannot clone it. Please make sure the repo is public.
If you continue to have issues, please let me know your URL

1 Like

Thank you for your reply. My repo is public, but I still have the same issue. The URL is Thank you so much!

Looking at our logs I see “No url found for submodule path ‘themes/PaperMod’ in .gitmodules”. In your .gitmodules file you should have something like this:

[submodule "PaperMod"]
	path = themes/PaperMod
	url = git://

It seems you’re missing that url field in your .gitmodules. This means we cannot clone it (as we don’t know what to fetch).
Please add that url field or remove the submodule link (this will just have the files as part of the repo)

It works,Thank you so much!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.