-
Notifications
You must be signed in to change notification settings - Fork 14
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
Jest = Can not find module #12
Comments
🤔 This may be an issue with sass-extract-loader rather than this plugin. |
@remijean I'm seeing the same thing. Did you resolve it? |
@rcwestlake no, I have not found a solution, but I mentioned the issue here jgranstrom/sass-extract-loader#7. |
No Jest support is a deal-breaker and the workaround posted in jgranstrom/sass-extract-loader#7 isn't good enough. |
Unfortunately this is a limitation with jest-resolver not understanding the webpack import syntax. You could try mocking the loader similar to how it's done in this issue. |
Hello,
I have a problem with Jest, when I run a test I have this error:
Cannot find module 'sass-extract-loader?{"plugins": ["sass-extract-js"]}!./theme/variables.scss' from 'index.tsx'
My code :
The text was updated successfully, but these errors were encountered: