livelys
livelys
  • 发布:2020-03-13 15:51
  • 更新:2021-04-28 11:07
  • 阅读:5617

nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下

分类:HBuilderX

如图,把nvueCompiler 改为weex 还是会出现同样的问题,

2020-03-13 15:51 负责人:无 分享
已邀请:
eren

eren - 95后小菜鸡

使用subNVues 我也遇到这个问题了 不知道咋解决

  • 在世小悟空

    最简单的办法就是不用.nvue,把.nvue里面的代码复制到.vue里面,我也不知道怎么解决就只能不用nvue了

    2020-03-25 09:10

kevin98

kevin98

请问一下解决了吗,怎么解决的呢,我也出现这种问题了

  • 在世小悟空

    我直接把.nvue里面的内容复制到了.vue就好了

    2020-03-30 16:22

jasonDev

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

  • 木杉丶

    我觉得你应该还是在nvue用到了哪些东西需要这些样式所以才报错

    2021-04-28 11:19

  • jasonDev

    回复 木杉丶: 就一个nvue页面,这个nvue页面做轨迹回放 的。本来以为是在app.vue里加了globalData的问题,可是去掉globalData还是报错。暂时没发现使用有什么问题啊。怎么回事

    2021-04-29 15:45

  • 木杉丶

    回复 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

  • 木杉丶

    回复 jasonDev: nvue里面也不能用scss和sass的css类型,不然也不行还是会警告,必须用最初始的那种css才行

    2021-04-29 16:23

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