Venkatesh Kunigiri
Venkatesh Kunigiri

Reputation: 1

Cannot import bootstrap in my Rails application.css.scss

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.

Upvotes: 0

Views: 197

Answers (1)

gwydion93
gwydion93

Reputation: 1923

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.

Upvotes: 1

Related Questions