<unicloud-db ref="udb" class="content" v-slot:default="{data,pagination,hasMore, loading, error}"
collection="opendb-feedback,uni-id-users" orderby="last_modify_date desc"
field="user_id.nickname,user_id._id,user_id.avatar_file,content,imgs,_id,schedule,create_date,last_modify_date">
<view v-if="error">sdfsdf</view>
<view v-else>
<textarea v-model="text" auto-height />
<view v-for="(item,index) in data" :key="index">
<view >sdfsdf</view>
<textarea v-model="text" auto-height />
</view>
<view class="uni-textarea">
<textarea v-model="text" @blur="bindTextAreaBlur" auto-height />
</view>
</view>
</unicloud-db>
- 发布:2022-01-11 11:05
- 更新:2022-01-11 11:05
- 阅读:437
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Win10 教育版
HBuilderX类型: 正式
HBuilderX版本号: 3.3.4
第三方开发者工具版本号: 1.05.2111300
基础库版本号: 2.21.2
项目创建方式: HBuilderX
示例代码:
操作步骤:
把for循环内的textarea注释掉正常运行,for循环外的两个textarea正常不影响运行
把for循环内的textarea注释掉正常运行,for循环外的两个textarea正常不影响运行
预期结果:
无报错
无报错
实际结果:
Error: You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a FunctionExpression node without passing scope and parentPath.
10:55:07.707 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
10:55:07.707 Error: Compile failed at pages/text/text2.vue
Error: You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a FunctionExpression node without passing scope and parentPath.
10:55:07.707 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
10:55:07.707 Error: Compile failed at pages/text/text2.vue
bug描述:
在使用unicloud-db后,for循环下使用textarea组件,小程序报错无法编译,H5正常
0 个回复