当前位置: 代码迷 >> 综合 >> uni-app引用vant组件编译报错Unclosed bracket
  详细解决方案

uni-app引用vant组件编译报错Unclosed bracket

热度:59   发布时间:2023-09-27 10:30:40.0

报错:

Module build failed (from ./node_modules/postcss-loader/src/index.js):
10:26:54.652 SyntaxError
10:26:54.653 (45:193) Unclosed bracket

全局搜索

https://img.yzcdn.cn/vant/vant-icon-d3825a.woff

找到index.wxss文件位置 

...src:url(https://img.yzcdn.cn/vant/vant-icon-d3825a.woff2) format("woff2"),url(https://img.yzcdn.cn/vant/vant-icon-d3825a.woff) ......

在...("woff2"),url(https:..)的逗号后添加空格

...src:url(https://img.yzcdn.cn/vant/vant-icon-d3825a.woff2) format("woff2"), url(https://img.yzcdn.cn/vant/vant-icon-d3825a.woff) ......