1***@163.com
1***@163.com
  • 发布:2021-01-20 14:56
  • 更新:2021-04-28 10:57
  • 阅读:5510

Selector `uni-view` is not supported

分类:nvue

nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:
14:43:07.042 ERROR: Selector uni-view is not supported. Weex only support single-classname selector at App.vue:10
14:43:07.046 ERROR: Selector uni-form is not supported. Weex only support single-classname selector at App.vue:15

页面名是home.nvue
项目是通过HbuilderX新建创建的
uni-view 和 uni-form 全局并未搜索到这两个类

mainifest.json
"app-plus" : {
"nvueCompiler" : "uni-app"
}
如果把这个设置weex就不会报这个错误

我想了解下这个问题具体是如何产生的 ,样式书写不规范吗

2021-01-20 14:56 负责人:无 分享
已邀请:
邦德

邦德

同样的问题,压根不知道报错的这些类名从哪里来的

乃斯乃斯

乃斯乃斯

一样的,我也遇到了,求解

jasonDev

jasonDev - 努力

同问,到底怎么回事啊?
10:56:03.022 nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:
10:56:03.038 ERROR: Selector uni-view is not supported. Weex only support classname selector at App.vue:178
10:56:03.054 ERROR: Selector uni-progress is not supported. Weex only support classname selector at App.vue:182
10:56:03.105 ERROR: Selector uni-checkbox-group is not supported. Weex only support classname selector at App.vue:182
10:56:03.106 ERROR: Selector uni-form is not supported. Weex only support classname selector at App.vue:186
10:56:03.129 WARNING: display is not a standard property name (may not be supported) at App.vue:190
10:56:03.156 WARNING: display is not a standard property name (may not be supported) at App.vue:210

该问题目前已经被锁定, 无法添加新回复