s***@126.com
s***@126.com
  • 发布:2024-06-09 17:38
  • 更新:2024-06-11 08:23
  • 阅读:99

示例项目无法运行

分类:uni-app

Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
17:42:18.995 (Emitted value instead of an instance of Error)
17:42:19.017 Errors compiling template:
17:42:19.017 <template> cannot be keyed. Place the key on real elements instead.
17:42:19.017 10 | <text class="nickname">邀请</text>
17:42:19.017 11 | </view>
17:42:19.017 12 | <template v-for="(member,index) in memberList" :key="index">
17:42:19.017 | ^^^^^^^^^^^^
17:42:19.018 13 | <view class="item" :title="member.users.nickname"
17:42:19.101 14 | :class="{'pointer': canPrivateChat,'focus':member.focus}" @click="toChat(member.users._id)"
17:42:19.301 at D:\My_prog\UNI_APP\星之链社区\uni_modules\uni-im\pages\group\members.nvue:0
17:42:19.463 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
17:42:19.463 (Emitted value instead of an instance of Error)
17:42:19.463 Errors compiling template:
17:42:19.463 <template> cannot be keyed. Place the key on real elements instead.
17:42:19.463 19 | </template>
17:42:19.463 20 | <template v-slot:over-avatar>
17:42:19.463 21 | <template v-for="overlay in avatarOverlayList" :key="overlay.component.name">
17:42:19.463 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17:42:19.508 22 | <component
17:42:19.508 23 | :is="overlay.component"
17:42:19.508 at D:\My_prog\UNI_APP\星之链社区\uni_modules\uni-im\components\uni-im-conversation\uni-im-conversation.vue:0
17:42:19.508 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
17:42:19.509 (Emitted value instead of an instance of Error)
17:42:19.509 Errors compiling template:
17:42:19.509 <template> cannot be keyed. Place the key on real elements instead.
17:42:19.509 29 | @click="createGroup"
17:42:19.521 30 | />
17:42:19.521 31 | <template v-for="item in UserinfoMenu" :key="item.component.name">
17:42:19.521 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
17:42:19.521 32 | <component :is="item.component" :conversation="conversation" cementing="UserinfoMenu" />
17:42:19.522 33 | </template>
17:42:19.522 at D:\My_prog\UNI_APP\星之链社区\uni_modules\uni-im\pages\chat\info.nvue:0
17:42:19.522 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
17:42:19.522 (Emitted value instead of an instance of Error)
17:42:19.522 Errors compiling template:
17:42:19.523 <template> cannot be keyed. Place the key on real elements instead.
17:42:19.523 43 | :code="item.iconCode" size="24" color="#666666" :title.native="选择${item.title},并发送"></uni-im-icons>
17:42:19.523 44 | </view>
17:42:19.549 45 | <template v-for="item in inputMsgToolBar" :key="item.component.name">
17:42:19.549 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
17:42:19.549 46 | <component :is="item.component" v-bind="item.props" @beforeSendMsg="beforeSendMsg" @sendMsg="sendMsg" @updateMsg="updateMsg" />
17:42:19.549 47 | </template>
17:42:19.549 at D:\My_prog\UNI_APP\星之链社区\uni_modules\uni-im\pages\chat\chat.nvue:0
17:42:19.549 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
17:42:19.549 (Emitted value instead of an instance of Error)
17:42:19.549 Errors compiling template:
17:42:19.549 <template> cannot be keyed. Place the key on real elements instead.
17:42:19.549 61 |
17:42:19.549 62 | <template
17:42:19.549 63 | v-for="extra in extraComponents"
17:42:19.549 |
17:42:19.549 64 | :key="extra.component.name"
17:42:19.549 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17:42:19.549 65 | >
17:42:19.549 at D:\My_prog\UNI_APP\星之链社区\uni_modules\uni-im\components\uni-im-msg\uni-im-msg.vue:0
17:42:19.549 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
17:42:19.549 语法错误: Unexpected token (1:339)
17:42:19.549 at uni_modules\uni-im\components\uni-im-filtered-conversation-list\uni-im-filtered-conversation-list.vue:1
17:42:19.549 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
17:42:19.549 语法错误: Unexpected token (7:164)
17:42:19.549 at uni_modules\uni-im\pages\group\info.nvue:7

2024-06-09 17:38 负责人:无 分享
已邀请:
套马杆的套子

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题

官方demo?还是插件市场?
如果是插件市场,可以在下面直接提问,这样作者可以看到

  • s***@126.com (作者)

    我是在插件下面问的,不知怎么发这里了

    2024-06-25 19:09

要回复问题请先登录注册