Skip to content

Error sass when build mode product #710

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

Closed
ErikPham opened this issue Nov 24, 2014 · 5 comments
Closed

Error sass when build mode product #710

ErikPham opened this issue Nov 24, 2014 · 5 comments
Assignees
Labels
Milestone

Comments

@ErikPham
Copy link

Hello!
When I build the application mode (production) but it is an error as below. Hope you help me solve direction.
p / s: I tried the url of the file refining of Bootstrap but not sass.

* Error
Error: File to import not found or unreadable: bootstrap-sass-official/vendor/assets/stylesheets/bootstrap/
    Load paths:
      on line 4 of app.scss

1: $icon-font-path: "/bower_components/bootstrap-sass-official/vendor/assets/fonts/bootstrap/";
2: $fa-font-path: "/bower_components/font-awesome/fonts";
  • File app.scss
$icon-font-path: "/bower_components/bootstrap-sass-official/vendor/assets/fonts/bootstrap/";
$fa-font-path: "/bower_components/font-awesome/fonts";

@import 'bootstrap-sass-official/vendor/assets/stylesheets/bootstrap';
@import 'font-awesome/scss/font-awesome';
@JaKXz JaKXz added the question label Nov 24, 2014
@Awk34
Copy link
Member

Awk34 commented Dec 8, 2014

Have you checked to make sure that the file does exist? If it does, you might try adding bower_components/ before the path and trying again.

@jonniedarko
Copy link

@PhucPM do you have bower installed globally? If not it will not install the bower components but it also doesn't appear to tell you that it failed to install bower component. I was having a similar issue and I installed bower globally ( npm install -g bower ) then ran bower install and grunt serve now works as expected

@jwhitmarsh
Copy link

@PhucPM I'm having the same issue, did you get anywhere with this in the end?

Timvissers added a commit to Timvissers/petstore that referenced this issue Mar 31, 2015
@Timvissers
Copy link

lines in the scss should be

$icon-font-path: "../bower_components/bootstrap-sass-official/vendor/assets/fonts/bootstrap/";
$fa-font-path: "../bower_components/font-awesome/fonts";

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

@jwhitmarsh
Copy link

Thanks @timv2 that's working now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants