Failed to parse source map: 'webpack://antd/./components/time-picker/style/index.less' URL is not supported
原因分析:
出现这个问题是因为 react-script 升级到5.0.0.,通过npx create-react-app 创建的项目,引入antd.css 之后会看到这个警告。
傻瓜式解决方案:
import "antd/dist/antd.css"
替换为
import "antd/dist/antd.min.css"