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
import not found when @import bootstrap in application.css.scss #66
Comments
I get the same error regardless of where I have the Things that don't work:
|
Whoops. My problem was that I had |
in cloudfoundry.org deploy still this issue |
I solved this by putting an underscore in front of the filename, i.e. @import "_bootstrap"; |
import "bootstrap"; I am running into the same problem and using the underscore doesn't help either. Sass::SyntaxError: File to import not found or unreadable: bootstrap. |
same problem here Is this problem still not solved? |
I have the same problem. I'm using rails 3.2.15. Thanks in advance |
you can try running "bundle update --source sass-rails" |
thanks @glebm but it didn't work. I't started to happen when i change the rails version from 3.2.3 to 3.2.15 because Bootstrap-dropdown didn't work. After having changed it, it worked again, but trying to push to Heroku throws error: "File to import not found or unreadable: custom.scss". The same error is thrown if i run "bundle exec rake assets:precompile". |
Looks like you are |
of course im importing it in my application.css file. I've have posted a more detailed explanation of my problem here: http://stackoverflow.com/questions/19775301/file-to-import-not-found-or-unreadable-only-with-scss-files check it out and i'd be very grateful if you point on which way to go or how can i solve it... Thanks |
Rename application.css to application.scss |
Remove .scss from |
Thank you very much @glebm !!! I renamed the file to .scss and it worked like a charm. Why is this? in version 3.2.3 it worked with css extension. I have another doubt, not critical, do you know why after a maybe is some configuration missing in development environment for precompiling? Thanks again for the above solution. |
It's because a .css file is not processed by Sass, so @import will not work, see also: http://sass-lang.com/documentation/file.SASS_REFERENCE.html#import. You should not be precompiling assets in development environment, nor checking in precompiled assets into source control. http://guides.rubyonrails.org/asset_pipeline.html |
firstly, i changed the application.css to .css.scss
then add
@import "bootstrap";
line.but the page show an error:
but i works when i change the import line to another .scss file and require it in application.css.scss.
and another question is the file which import bootstrap can't end with .css.scss but only .scss. i don't know what's the different between the two type files?
The text was updated successfully, but these errors were encountered: