uniapp Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.

出现这种错误的方式可能有很多,但是我们经常遇到的肯定是最意外的那种情况

如果你引入项目中的组件一直运行正常,但是某一天突然好多组件就挂了,特别是官方组件,样式错乱,原因之一可能就是:

你在项目根目录下的uni.scss引入了自已写的scss文件
原文地址:https://www.cnblogs.com/Ryan777/p/12505523.html