406012586@qq.com
406012586@qq.com
  • 发布:2020-08-01 17:46
  • 更新:2020-08-01 17:46
  • 阅读:18

【报Bug】recycle-list子组件添加recyclable时报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 2.8.3

手机系统: Android

手机系统版本号: Android 10

手机厂商: 华为

手机机型: WLZ-AN00

页面类型: vue

nvue编译模式: fast

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

将子组件中添加了recyclable的代码进行编译会报错

预期结果:

正常使用子组件的recyclable功能

实际结果:

无法正常使用recyclable

bug描述:

NVUE开发,经过长时间排查,在recycle-list的子组件中添加recyclable时报错,不添加时不会报错

<template recyclable>  
      <view></view>  
</template>
17:36:26.235  Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):  
17:36:26.235 TypeError: staticClass.trim is not a function  
17:36:26.245     at parseStaticClass (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4453:33)  
17:36:26.257     at Array.transformNode (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4414:13)  
17:36:26.271     at processElement (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1738:28)  
17:36:26.284     at closeElement (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1393:17)  
17:36:26.299     at Object.end (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1598:7)  
17:36:26.315     at parseEndTag (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:533:19)  
17:36:26.332     at parseHTML (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:347:11)  
17:36:26.350     at parse (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1481:3)  
17:36:26.367     at baseCompile (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4395:13)  
17:36:26.384     at Object.compile (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4370:22)  
17:36:26.386     at compile (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:5047:24)  
17:36:26.405     at compileTemplate (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-template-compiler\lib\auto-components.js:75:15)  
17:36:26.426     at compiler.compile (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\build\vue-loader.conf.js:115:10)  
17:36:26.447     at actuallyCompile (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:70:96)  
17:36:26.473     at compileTemplate (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\@vue\component-compiler-utils\dist\compileTemplate.js:31:16)  
17:36:26.473     at Object.module.exports (F:\uniproject\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\vue-loader\lib\loaders\templateLoader.js:46:20)
2020-08-01 17:46 负责人:无 分享
已邀请:

要回复问题请先登录注册