Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your SCSS file assets/main.scss has an error on line 2: File to import not found or unreadable #219

Closed
sponge-jl-old-func opened this issue Oct 27, 2019 · 4 comments

Comments

@sponge-jl-old-func
Copy link

Hi,
I have very excited by using your great theme! Thank you for opening theme-sources. 👍

In this case, I have a problem that deploy fail.
Here is my "Page build failure" email contents.

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

Your SCSS file `assets/main.scss` has an error on line 2: File to import not found or unreadable: ../assets/vendor/startbootstrap-clean-blog/scss/clean-blog.scss. Load paths: _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/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#invalid-sass-or-scss.

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.

At first, I saw that link in email.. but I cannot fix it.
On the otherhand, In my macOS Mojave, It has no problem. ( I can't understand...)

Would you help me to solve this problem?

Here is the repository link.
Here is the git-blog link. <- fail to deploy

Thank you for reading.

@sponge-jl-old-func
Copy link
Author

I solve it!
Oh, it's my misstake that misunderstood about importing sass sources.
See this StackOverFlow tip!

@sponge-jl-old-func
Copy link
Author

Thank you for your sharing so wonderful theme! :)

@israeldav
Copy link

I'm having the same issue - getting this error on github pages, loads fine locally.

Your SCSS file assets/main.scss has an error on line 2: File to import not found or unreadable: ../assets/vendor/startbootstrap-clean-blog/scss/clean-blog.scss. Load paths: _sass /hoosegow/.bundle/ruby/2.7.0/gems/jekyll-theme-primer-0.5.4/_sass /hoosegow/.bundle/ruby/2.7.0/gems/jekyll-theme-primer-0.5.4/_sass.

I added

sass: sass_dir: _sass style: :compressed

to config file, still wont build on github pages.

Any help would be very much appreciated.

@christopherwhaas
Copy link

I'm having the same issue - getting this error on github pages, loads fine locally.

Your SCSS file assets/main.scss has an error on line 2: File to import not found or unreadable: ../assets/vendor/startbootstrap-clean-blog/scss/clean-blog.scss. Load paths: _sass /hoosegow/.bundle/ruby/2.7.0/gems/jekyll-theme-primer-0.5.4/_sass /hoosegow/.bundle/ruby/2.7.0/gems/jekyll-theme-primer-0.5.4/_sass.

I added

sass: sass_dir: _sass style: :compressed

to config file, still wont build on github pages.

Any help would be very much appreciated.

Try replacing the vendor with vendor/bundle in your .gitignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants