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

Why can't I use @use with this? #855

Open
blaasvaer opened this issue Aug 23, 2022 · 2 comments
Open

Why can't I use @use with this? #855

blaasvaer opened this issue Aug 23, 2022 · 2 comments

Comments

@blaasvaer
Copy link

I've implemented this according to the docs ... but whenever I use @use nothing works. but if I use the old @import everything is fine.

Now, HOW do I make sure that I use the right (Dart Sass – which support @use) version and NOT LibSass? I've installed Dart Sass globally npm i -g sass, and also locally (otherwise it won't run). So, basically I'm confused ...

@wkillerud
Copy link

Can you post an example of what isn't working? A GitHub repository, CodeSandbox or something else?

gulp-sass is just a thin wrapper around sass, and I use @use without problems myself. Most likely there's a problem with your setup, but you don't give much detail about it.

Now, HOW do I make sure that I use the right [...] version

In your project:

npm install sass gulp gulp-sass --save-dev

In your gulpfile:

const gulp = require('gulp');
const sass = require('gulp-sass')(require('sass'));

@tonysamperi
Copy link

Same here, I had to manually wrap sass and it works like charm...
while passing the importers when calling gulp-sass didn't work!

image

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