maoberlehner / node-sass-magic-importer

Custom node-sass importer for selector specific imports, module importing, globbing support and importing files only once.
MIT License
292 stars 28 forks source link

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

Open jbjanot opened 7 months ago

jbjanot commented 7 months ago

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! 🙏🏻