-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
dart sass erroring up no such file or directory
for sass true
#156
Comments
I've just had a similar issue. I fixed it in my case by removing the sass injection into the |
Tests working fine on removing |
I'm not sure if that's the same issue as the one reported in sass/dart-sass#710 (comment) (ie: jest + dart-sass + sass-true) but at the moment it looks like it's working by setting I guess the default |
Thank you @dwightjack . |
required to add a jest config variable to package.json to overcome this issue oddbird/true#156
I also encountered the same issue. I had to create a separate jest.config.js for my sass tests, because my other jest tests are (Angular) front-end tests, and require jsdom. If I set Note that I only saw this specific issue on Linux - on windows the tests work as expected with jest and dart-sass. However, I also experienced another, almost surely related problem on Windows - the dart-sass @import / @use file resolution failed to find scss files in the same directory. So I (before discovering the Given all this, it seems safe to conclude that dart-sass file or path resolution doesn't work correctly within jest when using |
I have recently started migrating to
dart-sass
instead ofnode-sass
. While usingnode-sass
.sass-true
was all working fine. On usingdart-sass
and updatingsass-true
to5.0.0
, i am gettingno such file or directory
on running tests.Steps to reproduce:
yarn
yarn test
On doing that, getting below error:
Could someone help me in determining the issue or am i doing things the way it is not supposed to do
The text was updated successfully, but these errors were encountered: