Md *_*ury 3 reactjs react-router react-redux react-hooks
我不断收到此错误。我搜索了很多文章,但未能找到解决方案。请帮我
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.
Run Code Online (Sandbox Code Playgroud)
小智 7
临时解决方案:如果您遇到过此类错误,请执行此操作
第 1 步:在“node_modules”中找到名为“resolve-url-loader”的文件夹。
第 2 步:打开文件夹并查找“index.js”。然后打开那个文件。
第 3 步:在“index.js”中,寻找“var option”。
示例: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”并保存更改。
第 5 步:通过“yarn start”或“npm start”重新启动您的应用程序。错误将消失。
注意:每次遇到此类错误时都执行此操作。
| 归档时间: |
|
| 查看次数: |
3672 次 |
| 最近记录: |