thoughtbot / bourbon

A Lightweight Sass Tool Set
https://www.bourbon.io/
MIT License
9.09k stars 878 forks source link

File to import not found or unreadable: bourbon #537

Closed neo-art closed 10 years ago

neo-art commented 10 years ago

Hi,

Trying to import bourbon/neat/bitters to Hugo static site generator (https://github.com/spf13/hugo) but for some reason I am getting File to import not found or unreadable: bourbon Maybe someone can advise what's wrong here (paths, directory architecture etc.?)

Thank you in advance.

sass src/stylesheets/all.css.scss static/css/all.css
Error: File to import not found or unreadable: bourbon.
       Load path: /home/user/PROJECTS/project-hugo
        on line 3 of src/stylesheets/all.css.scss

bundle show bourbon
/usr/lib/ruby/gems/2.1.0/gems/bourbon-4.0.2

Gemfile:

source 'https://rubygems.org'

gem 'sass'
gem 'bitters'
gem 'bourbon'
gem 'neat'

My directory architecture:

PROJECT
- archetypes
- content
- layouts
- public
- src
 -- stylesheets
  --- base
  all.css.scss
- static
 -- css
 all.css
config.yaml
Gemfile

Update: All.css.scss content

  @charset "utf-8";

  @import "bourbon";
  @import "bitters/bitters";   /* Bitters needs to be imported before Neat */
  @import "neat";
donokuda commented 10 years ago

Hi @neo-art,

Can you run bourbon install and neat install in the src/stylesheets directory then update your all.css.scss file to:

 @charset "utf-8";

 @import "bourbon/bourbon";
 @import "base/base";   // If you have installed bitters in your stylesheets directory
 @import "neat/neat";

Then run sass src/stylesheets/all.css.scss static/css/all.css and let me know if it successfully compiles?

neo-art commented 10 years ago

Hi @donokuda

Thank you for the advice. Unfortunately it didn't work via gem but I managed to install it 2 days ago exactly the way you suggested and it works perfect now. Once thank you for the assistance. :)

donokuda commented 10 years ago

No problem! Glad you got it to work!

theterminalguy commented 7 years ago

@neo-art next time can you be more kind to share what worked for you. This can also help people having the same problem. Saying what works for you without sharing is not Open Source. Thanks.