Article version:

Page build failed: Missing submodule

If your GitHub Pages code includes a reference to a submodule that doesn't exist or hasn't been properly initialized, your GitHub Pages site will not build.

If your GitHub Pages site fails to build because of a missing or improperly initialized submodule, you'll receive an email that looks like this:

Subject: Page build failed

The page build failed with the following error:

"The submodule `EXAMPLE_SUBMODULE` was not properly initialized with a `.gitmodules` file.

Troubleshooting non-existent submodule errors

Tip: We strongly recommend running Jekyll locally so you can easily debug and fix build errors before pushing to GitHub. To learn more about troubleshooting options, see "Troubleshooting GitHub Pages builds."

If you haven't initialized your submodule, you will need to initialize it with the following steps:

Ask a human

Can't find what you're looking for?

Contact us