-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
In v5 can't use import * as styles with css modules, bug? #11800
Comments
Thanks for reporting @mikoleg - does |
Thank you, yes |
we have the same issue. did you find another workaround beside rewriting the imports? has this something to do with the default TS config? |
Destructing also not working |
I am getting the same error after upgrading to v5. For now the only workaround I have is importing the css as |
Without having looked too deeply, this is likely caused by CRA 4 using You can see how in the latest docs (v6), Furthermore, if you do decide to manually set Regardless, for those that may want to enable Named Exports (which presumably would resolve the OP's problem) anyways, here's the hacky solution I have for the time being to go into your webpack config (e.g. from
|
you can use |
This didn't work for me. Tried various different options, but with no luck. |
Is there a fix for this? I am still facing this issue on |
I too am having issues with v5.0.1 |
Hello,
after upgrading to v5 I can not use anymore named import such as
import * as styles from './Table.module.css';
This results in the following error
export 'table' (imported as 'styles') was not found in './Table.module.css' (possible exports: default)
Is this a bug? I can not find any workaround.
Thank you for any help.
The text was updated successfully, but these errors were encountered: