nandomoreirame / end2end

💎 Clean Jekyll theme
https://nandomoreirame.github.io/end2end/
MIT License
275 stars 198 forks source link

File to import not found or unreadable: bourbon #40

Open albertogarrido opened 6 years ago

albertogarrido commented 6 years ago
Conversion error: Jekyll::Converters::Sass encountered an error while converting 'css/main.sass':
File to import not found or unreadable: bourbon. Load path: /Users/Alberto/dev/web/end2end/source/_sass on line 9
rake aborted!
Jekyll::Converters::Scss::SyntaxError: File to import not found or unreadable: bourbon.

I am facing that issue when performing rake publish or just rake

I have installed bourbon, there is a folder in the project's root dir, and the version is

❯ bourbon -v
Bourbon 4.3.4

Ruby version:

❯ ruby -v
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin16]

i've made no other change yet to the project. What can be that issue?

EDIT: I have zero experience with this tools, but we love the theme for my gf's website :)

EDIT2: ❯ bundle exec jekyll serve works fine and the website in local works also good, not the case of rake publish

badalsurana commented 6 years ago

having same issue

matthewsalan commented 6 years ago

Same error for me (MBP running osx el capitan 10.11.6) when running bundle exec rake publish

Configuration file: _config.yml
  Conversion error: Jekyll::Converters::Sass encountered an error while converting 'css/main.sass':
                    File to import not found or unreadable: bourbon. Load path: /Users/alanmatthews/Documents/matthewsalan.github.io/source/_sass on line 3

Also getting build failures on GH pages, this one being very common about symlinks.

Your site is having problems building: A file was included in source/blog/index.html that is a symlink or does not exist in your _includes directory.

That's just a fresh clone of your repo and attempting to publish to my site. I get the same error for include social.html, it seems the symlinks work for some of the source/_includes

Yields the same bourbon error when running the rake command

Configuration file: _config.yml
  Conversion error: Jekyll::Converters::Sass encountered an error while converting 'css/main.sass':
                    File to import not found or unreadable: bourbon. Load path: /Users/alanmatthews/Documents/matthewsalan.github.io/source/_sass on line 9

Also getting this error:

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

Your Sass file `source/css/main.sass` has an error on line 2: File to import not found or unreadable: main. Load path: /hoosegow/.bundle/ruby/2.4.0/gems/jekyll-theme-primer-0.5.2/_sass

After trying for hours of playing around with variations of importing the sass files. Is this a naming convention error? I see main.sass in source/_sass/main.sass doesn't have a underscore.

smileklvens commented 6 years ago

me to

Conversion error: Jekyll::Converters::Sass encountered an error while converting 'css/main.sass':
                    File to import not found or unreadable: bourbon. Load path: /Users/smileklvens/Desktop/workspace/blog/smileklvens.github.io/source/_sass on line 9
smileklvens commented 6 years ago

1.在_sass中main.sass --->_main.sass ,change to.

  1. _main.sass中@import "bourbon/bourbon"

I solute ,but site style has change

pointblack commented 6 years ago

@smileklvens, @albertogarrido, I fixed this by adding require 'bourbon' to the Rakefile. I can do a pr if wanted https://github.com/pointblack/end2end/commit/218a7267328629c1718c4515425400ede77172d8

matthewsalan commented 6 years ago

After playing around with some of the css file links, I was able to get everything resolved and able to run the rake task to publish the site. Thanks @pointblack