当使用react框架搭建项目引入ant design,如果执行npm start 出现以下错误及警示。
WARNING in ./node_modules/[email protected]@antd/dist/antd.css (./node_modules/css-loader/dist/cjs.jsruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcssloader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/sourcemaploader/dist/cjs.js!./node_modules/[email protected]@antd/dist/antd.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/config-provider/style/index.less' URL is not supported
解决办法
将 import 'antd/dist/