.webpackrc.js, is it wrong?
When I import {Select} from antd the Select has no style, just antd-mobile style work.
entry: "src/index.js",
theme: 'src/theme.js',
extraBabelPlugins: [[
"import",
{libraryName: "antd-mobile",
"libraryDirectory": "lib", "style":true},
{libraryName: "antd",
"libraryDirectory": "lib", "style": true}
]],
Try importing the css manually by adding
import 'antd/dist/antd.css';orimport 'antd/dist/antd.less'Source: https://ant.design/docs/react/introduce