-
Notifications
You must be signed in to change notification settings - Fork 9
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
TypeError: Cannot read property 'use' of undefined #16
Comments
Getting the same error |
For what its worth, I'm using NRWL/NX. It turns out, with the latest bits this plugin is no longer necessary to get css modules working with React. Putting this here just in case this happens to be the issue others are having. The reason use is being called on undefined is because the search for the existing css loaders returns nothing. I was seeing the issue because the addon I was using from nrwl, apparently, removes the items. 🤷♂️ Hope this helps someone |
Weird, so NX is the culprit of it? @JohannesKlauss are you using NX too? |
No, it's unrelated to nx. I get that error on nx projects too, but also on non nx projects. |
@JohannesKlauss Can you please create a simple reproduction repo? |
You just create a CRA app, add Storybook, add the plugin and Storybook doesn't work anymore. |
This preset filters |
Running into the following error after installing this preset. This is a fresh install of storybook (on CRA) with only sass preset added so far.
my config:
my other dependencies/loaders
If I jump into the package and log out
config.module.rules
I get the following:The text was updated successfully, but these errors were encountered: