错误:postcss-svgo:解析SVG时出错:属性值未加引号

时间:2019-10-20 01:57:12

标签: postcss-loader

我试图在Heroku上部署我的nuxt应用程序,但是每次尝试部署它时,我都会收到一条错误消息,内容如下:

ERROR in ./node_modules/argon-design-system-free/assets/css/argon.min.css (./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/postcss-loader/src??ref--3-oneOf-1-2!./node_modules/argon-design-system-free/assets/css/argon.min.css)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: postcss-svgo: Error in parsing SVG: Unquoted attribute value
Line: 0
Column: 12
Char: \
    at promises.push.getSvgo.optimize.then.catch.error (C:\Sites\unsplash-app\node_modules\postcss-svgo\dist\index.js:95:19)
 @ ./node_modules/argon-design-system-free/assets/css/argon.min.css 4:14-147
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./.nuxt/client.js

每次我运行yarn build命令来构建项目时,都会发生此错误。

在我的项目中,我决定使用名为Argon Design的免费设计系统,该错误表明 argon.min.css 文件存在问题,但我没有知道我现在应该如何进行。

为诊断问题,我尝试将xml-fix-loader模块安装到我的项目中,但这无助于解决我的问题。偶然安装时是否应该执行其他步骤?

0 个答案:

没有答案