Skip to content

404 issue when uploading to GitHub Pages, due to error in node modules (maybe add node_modules to .gitignore file?) #20

Description

@TommyJackson85

When I try to upload the project to GitHub Pages, I get a 404 error when loading the index file, followed by an email from GitHub:

The page build failed for the master branch with the following error:
The variable {{a} on line 50 in node_modules/balanced-match/README.md was not properly closed with }}. For more information, see https://help.github.com/articles/page-build-failed-tag-not-properly-terminated/.
For information on troubleshooting Jekyll see:
https://help.github.com/articles/troubleshooting-jekyll-builds
If you have any questions you can contact us by replying to this email

I managed to fix this error after reading up on the following links. This is a common problem with Jekyll:
juliangruber/balanced-match#22
EarthlingInteractive/aframe-geo-projection-component@f06ab2e

I fixed the error by changing the .gitignore file to the following, (BEFORE uploading it as a new repository to GitHub):

node_modules/*
.idea/

may I suggest changing the .gitignore file, or to highlight this issue in the ES6-Tutorial instructions, incase someone else wants to upload it to GitHub pages.
edit: If the repository is already uploaded with node_modules you could untrack node_modules with the following git command at the repository folder:
git rm --cached node_modules -r

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions