0

I wrote a web application on nuxt.js. I followed this instruction clearly. Nuxt.js deploy on GitHub Pages

But when I deploy my app to Github Pages, there was an error on my site in the console

enter image description here

Here is my site

1 Answer 1

3

The .nojekyll file is missing.

You have forgotten to commit the empty file called .nojekyll from dist to your GitHub project.

This is because GitHub Pages will by default ignore any files and folders prefixed by an underscore (like _nuxt), as documented here: https://github.com/blog/572-bypassing-jekyll-on-github-pages

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for the answer! There was no .nojekyll in the folder dist. Despite this, I added an empty .nojekyll file to my github project. But the console errors did not disappear
be careful, you have to put the .nojekyll file at root of your project (github.com/sadybekovyernar/sadybekovyernar.github.io) not in a subfolder (github.com/sadybekovyernar/sadybekovyernar.github.io/tree/…)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.