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

Standalone sass compiler: Can't find stylesheet to import #2165

Closed
m-nic opened this issue Jan 26, 2024 · 1 comment
Closed

Standalone sass compiler: Can't find stylesheet to import #2165

m-nic opened this issue Jan 26, 2024 · 1 comment
Assignees

Comments

@m-nic
Copy link

m-nic commented Jan 26, 2024

I'm trying to use the standalone compiler for existing code that has style dependencies on a number of npm packages.
The command looks like:
sass --load-path=node_modules src/styles/app.scss public/app.css

I encounter the following error:
Error: Can't find stylesheet to import. @import "~/boostraps-sass/assets/stylesheets/bootstrap/variables"
I understand the ~ is not something specific to sass and some other posts mention it could be solved via custom importer, but that seems to be available only in the js api.
Is there a way to fix the issue without having to change the existing code?

Thank you!

@Goodwine
Copy link
Member

Hi there! As you mentioned, you must use a custom Sass importer in order to make this work. The standalone Sass compiler doesn't support this feature.

@Goodwine Goodwine closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2024
@Goodwine Goodwine self-assigned this Jan 29, 2024
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

2 participants