[FAQ] uni-app 运行微信小程序 main.wxss 报错 unexpected token "$"

检查一下你是否在 App.vue 中有手动操作引入过 uni.scss,比如下面的 import:

<style >
@import url("./uni.scss");

/* #ifdef MP-TOUTIAO */
@font-face {
    font-family: uniicons;
    src: url('/static/uni.ttf');
}
/* #endif */
</style>

注意,不需要手动引入,在微信中编译运行会报错。

Refer:uni-app常见报错

Link:https://www.cnblogs.com/farwish/p/13881353.html