ignore-styles icon indicating copy to clipboard operation
ignore-styles copied to clipboard

How to ignore style.scss?modules

Open ykadosh opened this issue 5 years ago • 1 comments

Using babel@7 and ignore-styles@5, i'm getting the following error when trying to import a file named style.scss?modules:

Error: Cannot find module './style.scss?modules'.

The following did not help:

require('ignore-styles').default([
	'.sass',
	'.scss',
	'.scss?modules',
]);

Thanks in advance!

ykadosh avatar Mar 31 '19 16:03 ykadosh

I am currently having the exact same issue Error: Cannot find module './styles.scss'. Though I've got the below code

import register from "ignore-styles";
register([".sass", ".scss"]);

SC7639 avatar Sep 28 '21 10:09 SC7639