dart-sass
dart-sass copied to clipboard
Legacy JS API does not handle symlinks properly
this is with npm sass .
relative import fails when it starts with 2 dots
@import ../some-style.
I also checked how fs.existsSync handles paths with .. in it.
on linux fs.existsSync fails to find the file if the path contains .., on windows it works...
Import URLs need to be in quotes, e.g. @import "../some-style"
It is with quotes in the app. Sorry i forgot to put them here in the example. The issue still persists.
Same code compiles with node-sass
@jathak
Can you provide a reproduction? ../ works in any case I can find.
hi @jathak , I worked on the reproduction and figured out that its happending when using symbolic links. https://github.com/patricklx/test-sass
It looks like this is an issue with the legacy JS API not handling symlinks properly. It works fine both when using the command line, and when using the new JS API, so for your case I'd recommend migrating to the new API to workaround this.
okay... But i do not control the api call, since that is done in another npm package