我不断地得到这个错误。我搜索了很多文章,但都找不到解决方案。请帮帮我
Error: resolve-url-loader: CSS error
source-map information is not available at url() declaration (found orphan CR, try removeCR option)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.发布于 2020-04-20 14:46:07
临时解决方案:如果你曾经遇到过这样的错误,那么可以这样做
第1步:在"node_modules“中找到名为"resolve-url-loader”的文件夹。
Step 2:打开文件夹并查找"index.js“。打开那个文件。
var步骤3选项:在"index.js“中,查找”“。
示例:var options = Object.assign( { sourceMap: loader.sourceMap, engine : 'postcss', silent : false, absolute : false, keepQuery: false, removeCR : false, root : false, debug : false, join : joinFn.defaultJoin },步骤4:查找变为"false“的"removeCR”。将其设置为"true“并保存更改。
Step 5:通过"yarn start“或"npm start”重启你的应用。错误将会消失。
注意:每次遇到这样的错误时都要这样做。
发布于 2021-08-27 01:59:21
将resolve-url-loader降级到^2.3.1解决了这个问题。
https://stackoverflow.com/questions/61274494
复制相似问题