Recat 引入antd CSS 报警告 解决方法

简介: Recat 引入antd CSS 报警告 解决方法
Failed to parse source map: 'webpack://antd/./components/config-provider/style/index.less' URL is not supported

Failed to parse source map: 'webpack://antd/./components/icon/style/index.less' URL is not supported

Failed to parse source map: 'webpack://antd/./components/locale-provider/style/index.less' URL is not supported

Failed to parse source map: 'webpack://antd/./components/time-picker/style/index.less' URL is not supported

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in ./node_modules/_antd@4.21.0@antd/dist/antd.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/_antd@4.21.0@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

WARNING in ./node_modules/_antd@4.21.0@antd/dist/antd.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/_antd@4.21.0@antd/dist/antd.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/icon/style/index.less' URL is not supported

WARNING in ./node_modules/_antd@4.21.0@antd/dist/antd.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/_antd@4.21.0@antd/dist/antd.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/locale-provider/style/index.less' URL is not supported

WARNING in ./node_modules/_antd@4.21.0@antd/dist/antd.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/_antd@4.21.0@antd/dist/antd.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map: 'webpack://antd/./components/time-picker/style/index.less' URL is not supported

webpack compiled with 4 warnings

import 'antd/dist/antd.css';
改为
import 'antd/dist/antd.min.css';
相关文章
|
前端开发 程序员
【前端】css布局html页面之inline-block布局错位解决方法
本篇文章中,主要讲讲前端布局的情况 对于,对于刚接触前端开发的小伙伴来说,布局是一个比较重要的知识点,如果知识点理解不到位,那么很容易出现布局错位的情况
417 0
|
4月前
|
前端开发 JavaScript
文本,wangEditor5展示HTML无样式,wangEditor5如何看源码,Ctrl + U看CSS文件,代码高亮,Prism.js可以实现,解决方法,参考网页源代码的写法
文本,wangEditor5展示HTML无样式,wangEditor5如何看源码,Ctrl + U看CSS文件,代码高亮,Prism.js可以实现,解决方法,参考网页源代码的写法
|
5月前
|
存储 前端开发 Windows
对于莫名其妙使用smarttomcat上传前端项目失败,上传css等静态资源失败等原因,及解决方法
对于莫名其妙使用smarttomcat上传前端项目失败,上传css等静态资源失败等原因,及解决方法
|
前端开发
css编程时问题解决方法
css编程时问题解决方法
antd组件库封装45-添加normalize.css
antd组件库封装45-添加normalize.css
66 0
antd组件库封装45-添加normalize.css
antd组件库封装45-添加normalize.css
antd组件库封装45-添加normalize.css
88 0
antd组件库封装45-添加normalize.css
|
前端开发
深入理解css浮动带来的问题及解决方法(清除浮动)
深入理解css浮动带来的问题及解决方法(清除浮动)
205 0
深入理解css浮动带来的问题及解决方法(清除浮动)
|
缓存 前端开发 JavaScript
关于typecho无法加载CSS、JS的解决方法
关于typecho无法加载CSS、JS的解决方法
344 0
|
前端开发 JavaScript
Antd给表格一个斜线分隔(通过css改变)
Antd给表格一个斜线分隔(通过css改变)
356 0
Antd给表格一个斜线分隔(通过css改变)
|
缓存 前端开发 JavaScript
关于typecho无法加载CSS、JS的解决方法
今天新入手了一个高防cdn,配置完ssl后发现一个bug,我整个网站的css、js无法加载的
297 0