uniapp 运行到qq小程序开发者工具,页面引入的全部组件报错,
报错如下:
Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./components/shopro-notice-modal/shopro-notice-modal.qss:751:1)This wxss file is ignored.
我把它所报错的组件代码全部删完,还是会报这个错误。
附件1为组件代码,附件2为运行报错
karlar (作者)
并没有,以下是components/shopro-notice-modal/shopro-notice-modal 代码截图
2020-10-22 11:56
DCloud_UNI_GSQ
回复 karlar: 那打开components/shopro-notice-modal/shopro-notice-modal.qss文件看下,可能是其他相关组件的样式编译到了shopro-notice-modal.qss
2020-10-22 14:44
karlar (作者)
回复 DCloud_UNI_GSQ: 是的解决了,一个sass文件使用了id选择器,并编译到了上面
2020-10-22 15:08