Search code examples
github-pagesnuxt.js

Github Pages error


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


Solution

  • 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