You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using sass-extract on NodeJS, at least together with node-sass-tilde-importer, the path of the import appears with a backslash \, while the includedFilesMap presents paths with forwardslash /.
Expected result
It should handle the import's path seamlessly, as if it was done on Linux or MacOS.
Actual result
It throws the error: Can not determine imported file for url 'C:\my\path\to\the\module\bla.scss' imported in C:/my/path/to/the/file/that/imports/it.scss
Note the difference in back and forward slashes.
Proposed solution
The solution should be passing the url parameter as normalizePath(url).
The text was updated successfully, but these errors were encountered:
Context
When using
sass-extract
on NodeJS, at least together with node-sass-tilde-importer, the path of the import appears with a backslash\
, while theincludedFilesMap
presents paths with forwardslash/
.Expected result
It should handle the import's path seamlessly, as if it was done on Linux or MacOS.
Actual result
It throws the error:
Can not determine imported file for url 'C:\my\path\to\the\module\bla.scss' imported in C:/my/path/to/the/file/that/imports/it.scss
Note the difference in back and forward slashes.
Proposed solution
The solution should be passing the
url
parameter asnormalizePath(url)
.The text was updated successfully, but these errors were encountered: