-
Notifications
You must be signed in to change notification settings - Fork 79
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
babel-plugin-import - not work #139
Comments
Hi @gromov-io , Can you share your setup? Maybe you can compare your config with https://github.com/jannikbuschke/cra-antd-x, where babel plugin should work. |
I just noticed that it didnt yet fully work. I think I fixed it just now. This is the config: https://github.com/jannikbuschke/cra-antd-x/blob/master/config-overrides.js |
@gromov-io can you verify if it now works? |
I'm having the same issue with a
|
Maybe try "style": "css" and "libraryDirectory":"es" for both imports (like here https://github.com/jannikbuschke/cra-antd-x/blob/master/config-overrides.js) |
Also it would be nice if you can clone the boilerplate (cra-antd-x), verify and report back if it works there. Would be kindly appreciated. |
Hi, I apologize for the long reply. Here is my config file and it does not work. PS this only works if the project antd component is already used somewhere
Here is an example input displayed correctly, since I already used "input" from antd in other components. And here is "inputNuber and Checkbox" without styles |
maybe remove the single ' in If that does not work, can you try if it works with config-overrids.js exactly as it is done here: https://github.com/jannikbuschke/cra-antd-x/blob/master/config-overrides.js) (not using a json confi as you are doing). |
Hey, Any news on this one? I'm having the same problem and i tried the suggested solutions above. Current
On a Next.js app. When i only use I tried to import components as |
maybe try with "style":"css" and "libraryDirectory":"es" |
The text was updated successfully, but these errors were encountered: