本文主要是介绍Failed to parse source map... Error: ENOENT: no such file or directory,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
运行npm run start 的时候出现了这个问题
WARNING in ./node_modules/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/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
解决办法:在根目录创建一个.env文件
然后写上以上 GENERATE_SOURCEMAP=false
这篇关于Failed to parse source map... Error: ENOENT: no such file or directory的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!