-
Notifications
You must be signed in to change notification settings - Fork 164
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
Unable to import SASS in a non-webpack project #303
Comments
same problem with Svelte/Vite here |
If using Vite you can handle this in the meantime with
|
I had the same issue. I'm making a non-webpack WordPress theme using node-sass as a compiler to string some commands together (copying files after compiling, etc). In Visual Studio Code, there's an extension for Live SASS watching/compiling. I found out it uses a form of webpack so it works whenever I save and it auto-compiles... But if I build using node-sass to compile the CSS, it would give the same error as OP. I found a solution, it's fairly simple: Basically, install another node library, that will handle as node-sass' importer. Then set up the package.json script, or use the command line: It's definitely a band-aid... |
Should be fixed with pull request #316. Please reopen if not. |
Your issue may already be reported!
Please search on the issue track before creating one.
Bug Report
Environment
Current Behavior
Importing the SCSS styles in my Rails project which does not use webpack (uses sass npm plugin) fails with an error due to the use of the
~
in imports.My import code (bulma SCSS is imported before this line):
The error:
Input Code
Possible Solution
Don't use deprecated tilde import syntax (note that this syntax is already deprecated in webpack)
Additional context/Screenshots
N/A
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codepen or similar.
I think it should be easily reproducible by creating a simple SCSS file which imports bulma + bulma-calendar SCSS and then try to compile it using the scss npm module with a command like:
The text was updated successfully, but these errors were encountered: