-
Notifications
You must be signed in to change notification settings - Fork 405
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
antd styles do not load in Create react app #313
Comments
I am having the same issue, elements shows up with no styling trying to use this package and less with latest create-react-app. @kaiz-growfitter what I can see in your settings style should be true, and not less according to the documentation. Edit: According to here: https://ant.design/docs/react/customize-theme#Customize-in-less-file you cannot do any antd . less imports from your project or your plugin-import will not work. |
In your index.js file, you can import ant style files: |
This really helped me, thanks a lot! |
@rustyonrampage @Wakkaba The point of the correct configuration would be that it loads component-specific styles automatically wherever the components are used, so you manually don't have to do that. |
+1 |
This is the webpack.config.js inside my .storybook folder inside CRA project-
Expected behavior is that styles should load from antd. However this is not the case and plain html elements show up.
The text was updated successfully, but these errors were encountered: