Skip to content
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

Can't @import bootstrap-sass #79

Closed
jedwards1211 opened this issue Apr 5, 2015 · 5 comments
Closed

Can't @import bootstrap-sass #79

jedwards1211 opened this issue Apr 5, 2015 · 5 comments

Comments

@jedwards1211
Copy link

I'm not sure if I'm doing wrong but the advice I followed in the readme doesn't seem to be working.

webpack.config.js:

  module: {
    ...
    {
      test: /\.s[ac]ss/,
      loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded&' +
        "includePaths[]=" +
          (path.resolve(__dirname, "./node_modules"))
    }
    ...
  },

My main sass file:

@import "theme.sass";
@import "~bootstrap-sass/assets/stylesheets/_bootstrap.scss";

Is there a way I can see inside the black box how the ~ is interpreted, using a debugger or something?

node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss definitely exists in my project and I have been able to require() it. But I get the following error when I try to @import it:

ERROR in ./~/css-loader!./~/sass-loader?outputStyle=expanded&includePaths[]=/home/andy/jcore-portal/frontend-react/node_modules!./src/styles/jCoreReactApp.sass
Module build failed: file to import not found or unreadable: ~bootstrap-sass/assets/stylesheets/_bootstrap.scss
Current dir:  (2:9)
 @ ./src/styles/jCoreReactApp.sass 4:14-328 12:19-333
@jhnns
Copy link
Member

jhnns commented Apr 10, 2015

Probably caused by #73

@mmahalwy
Copy link

Any solution on this?

@jhnns
Copy link
Member

jhnns commented May 15, 2015

Does v1.0.2 fix this issue?

@mmahalwy
Copy link

Yeah I think so - after updating my modules things started to work again. I am good.

@jhnns
Copy link
Member

jhnns commented May 17, 2015

I'm glad I could help 😀

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

No branches or pull requests

3 participants