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

sass.Exception [Error]: Can't find stylesheet to import. #264

Open
jbjanot opened this issue Mar 25, 2024 · 0 comments
Open

sass.Exception [Error]: Can't find stylesheet to import. #264

jbjanot opened this issue Mar 25, 2024 · 0 comments

Comments

@jbjanot
Copy link

jbjanot commented Mar 25, 2024

Hi! Thank you so much for this plugins :)
I am trying to use node-sass-glob-importer.

I got this following error that tells me that the plugin might not be running on build: sass.Exception [Error]: Can't find stylesheet to import.

Here is a minimum setup I am trying to run:

import * as sass from 'sass';
import globImporter from 'node-sass-glob-importer';

sass.compile( './path/to/src/styles.scss', {
	importer: globImporter(),
} );

And in my css file:

@import "./**/__*.scss";

Is there something I am doing wrong?
Thank you for your time and help! 🙏🏻

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

1 participant