uni-app 微信小程序开发-使用uView时报错:SassError: Undefined variable: "$u-border-color".

602 阅读1分钟

报错截图

image.png

解决方法:

在 uview-ui文件夹下,找到index.scss文件 添加:@import 'theme.scss'

@import 'theme.scss';

image.png

image.png

其他

若还没有解决的话 您这边看一下 是否安装scss or scss-loader等等

下面的链接是讲如何安装的👇 个人觉得这位兄弟 写的挺简洁,挺好的

友情链接:uView——安装及使用教程 - 掘金 (juejin.cn)