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?
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+
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With