如图,把nvueCompiler 改为weex 还是会出现同样的问题,
- 发布:2020-03-13 15:51
- 更新:2021-04-28 11:07
- 阅读:6472
nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下
jasonDev - 努力
新加了一个nvue页面,编译报一大堆错,主要集中在App.vue里和我自己写的watch-button.vue里(这两个文件都是编译器自动链接的?)。按网上的方法,设置 "nvueCompiler":"weex", 无效。想定位到报错行,又定位不到,谁知道怎么回事?暂时没发现影响使用啊,以后会有影响吗?
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
10:56:03.157 ERROR: Selector .uni-inline-item uni-text
is not supported. Weex only support classname selector at App.vue:214
10:56:03.185 ERROR: Selector .uni-inline-item uni-text:last-child
is not supported. Weex only support classname selector at App.vue:217
10:56:03.212 WARNING: display
is not a standard property name (may not be supported) at App.vue:227
10:56:03.213 WARNING: box-sizing
is not a standard property name (may not be supported) at App.vue:233
。。。。。。。。。。。。。。。。。。。。。。
10:56:08.852 ERROR: Selector uni-button.primary
is not supported. Weex only support classname selector at App.vue:1711
。。。。。。。。。。。。。。。。。。。。。。。
10:56:15.481 WARNING: -o-animation
is not a standard property name (may not be supported) at components/watch-login/watch-button.vue:1277
10:56:15.512 WARNING: animation
is not a standard property name (may not be supported) at components/watch-login/watch-button.vue:1278
-
回复 jasonDev: manifest.json设置了,我试了一下好像没问题,警告就没了
/ 5+App特有相关 /
"app-plus" : {
"compatible" : {
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
},
"statusbar" : {
"immersed" : false //app端防止状态栏穿透问题
},
"nvueCompiler" : "weex", //app判断nuve执行页面
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",2021-04-29 16:19
在世小悟空
最简单的办法就是不用.nvue,把.nvue里面的代码复制到.vue里面,我也不知道怎么解决就只能不用nvue了
2020-03-25 09:10