Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll site fails only when pushed to GitHub

I am developing a new version of a static website with Jekyll that deployed via Github pages: https://devcampy.com

The repository: https://github.com/gianarb/devcampy.com

Locally I run it with docker, and I am not able to reproduce the issue:

$ docker run --rm -p 4000:4000 -v "$PWD":/srv/jekyll jekyll/jekyll:stable jekyll serve

This is the error I get via email when I push to the repository. I can't figure out why it does not work properly

The page build failed for the `master` branch with the following error:

Your SCSS file `assets/main.scss` has an error on line 6: File to import not found or unreadable: vendor/rfs. Load paths: node_modules /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass. For more information, see https://help.github.com/en/articles/page-build-failed-invalid-sass-or-scss.

Does somebody have any feedback? Thanks a lot

like image 866
GianArb Avatar asked Jan 26 '23 03:01

GianArb


1 Answers

Your current bootstrap code is incomplete. /node_modules/bootstrap/scss/vendor/_rfs.scss is missing because of a .gitignore rule that prevent any vendor folder to be versioned.

  1. In your .gitignore, replace vendor line by vendor/bundle

  2. run npm install bootstrap to override current version

like image 136
David Jacquel Avatar answered Jan 29 '23 08:01

David Jacquel