eb1t
eb1t

Reputation: 57

Can't find stylesheet to import

I'm using bootstrap and sass. Nodejs with grunt.

app.sss

$icon-font-path: "/bower_components/bootstrap-sass-official/vendor/assets/fonts/bootstrap/";
$fa-font-path: "/bower_components/font-awesome/fonts";
$header-height: 50px;

@import 'bootstrap-sass-official/vendor/assets/stylesheets/bootstrap';
@import 'font-awesome/scss/font-awesome';
...
...
...

Error:

Error: Can't find stylesheet to import.
      ╷
    4 │ @import 'bootstrap-sass-official/vendor/assets/stylesheets/bootstrap'

I've tried using ~ no $icon-font-path, tried to put the relative path, and it didn't work.

Any suggestion? thanks.

Upvotes: 3

Views: 9689

Answers (1)

TheDevGuy Marc
TheDevGuy Marc

Reputation: 89

So there could be multiple errors:

  1. Is the Path to the stylesheet correct ?
  2. Is the filename correct ?
  3. Do you have to put a "/" before the path like "/bootstrap-sass-official/..." ?

Try this out and look for the result :)

Upvotes: 0

Related Questions