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

Possible issue the --load-path #2015

Open
panoply opened this issue Jun 13, 2023 · 1 comment
Open

Possible issue the --load-path #2015

panoply opened this issue Jun 13, 2023 · 1 comment

Comments

@panoply
Copy link

panoply commented Jun 13, 2023

Version 1.63 seems to have trouble with --load-path flag and --watch. SASS will not recompile on change. Take the following:

sass --watch --load-path=node_modules/  src/styles/stylesheet.scss public/style.css

In stylesheet.scss

@import "bootstrap/scss/bootstrap";
@import "dir/custom-file"

When SASS is invoked in watch mode then changes to custom-file (as an example) will not trigger re-compile.

Additional Information

I leverage PNPM which means dependencies are symlinked. Unsure if this might be causing the conflict, however it is important to note that running without --watch flag will build as intended.

Current Workaround

Explicitly defining the paths, eg:

@import "../../node_modules/bootstrap/scss/bootstrap";
@import "dir/custom-file"

Will result in behaviour to work as intended.

@jathak
Copy link
Member

jathak commented Sep 5, 2023

Sorry for the delayed reply.

Can you try running with the --poll option? File watching is dependent on the platform's implementation, so there's usually not anything we can do to fix issues like this, but --poll should work reliably as a fallback.

@nex3 nex3 added the needs info label Dec 5, 2023
@nex3 nex3 unassigned jathak Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants