0

I am getting the error

File to import not found or unreadable: bootstrap.

and

Extracted source (around line #1):

@import 'bootstrap';

while importing bootstrap.

I tried renaming and restarting the server for so many different ways but still did not work.

2
  • 3
    do you have the bootstrap gem installed? Commented Jun 20, 2015 at 21:43
  • 1
    Edited, don't use screenshots of error messages or code in your IDE. Include the relevant code in your question and the text of the error message. Screenshots are only useful for demonstrating browser related issues. Commented Jun 20, 2015 at 22:24

1 Answer 1

1

Assuming you already have gem 'bootstrap-sass' installed with the proper version, did you add @import "bootstrap-sprockets"; before @import "bootstrap";? I believe the sprockets part needs to be added first in your scss file. Hope that helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.