Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sass::SyntaxError: File to import not found or unreadable: bourbon/bourbon

I've installed rvm and bourbon. I then installed bourbon into my /css directory. However when I try

@import 'bourbon/bourbon'; 

I get this error:

Sass::SyntaxError: File to import not found or unreadable: bourbon/bourbon.

I've checked out other threads with the same issue but none seemed to solve my problem. How can I get this error to go away and for bourbon to import correctly?

like image 234
thomasp423 Avatar asked Apr 29 '14 16:04

thomasp423


1 Answers

try this out:

In your Gemfile:

gem 'bourbon'

Then run:

bundle install

from github documentation of bouron

Non-Rails projects

Bourbon includes an easy way to generate a directory with all the necessary files. For command line help: $ bourbon help or visit the Command line tools wiki Install (Bourbon v3.0+)

gem install bourbon

Install Bourbon into the current directory by generating the bourbon folder:

bourbon install

The generated folder will contain all the mixins and other necessary Bourbon files. It is recommended not to add or modify the Bourbon files so that you can update Bourbon easily.

You can specify a target directory using the path flag:

bourbon install --path my/custom/path/

Import

Lastly, import the mixins at the beginning of your stylesheet(s):

@import 'bourbon/bourbon';

Note: Bourbon no longer requires a custom sass --watch command for Bourbon v3.0+
like image 114
Sachin Singh Avatar answered Nov 15 '22 08:11

Sachin Singh