Skip to content

TypeError: taro.createSelectorQuery is not a function #3310

@Guest918

Description

@Guest918

NutUI 包名

@nutui/nutui

NutUI 版本号

4.3.14

平台

h5

重现链接

内网环境,无法访问

重现步骤

`

<nut-navbar title="主页" @click-title="onClick">
<template #right>


<nut-noticebar :scrollable="true" :IsAnimation="false">
  <template #left-icon>
    <img
      src="https://img13.360buyimg.com/imagetools/jfs/t1/72082/2/3006/1197/5d130c8dE1c71bcd6/e48a3b60804c9775.png"
      style="width: 20px; height: 20px"
    />
    <Notice color="#1989fa" />
  </template>
  <span style="color: #000">{{ text }}</span>
</nut-noticebar>

<nut-tabbar
  style="position: absolute; bottom: 0; left: 0; right: 0"
  v-model="active"
  unactive-color="#7d7e80"
  active-color="#1989fa"
>
  <nut-tabbar-item tab-title="Home" :value="11">
    <template #icon>
      <Home></Home>
    </template>
  </nut-tabbar-item>
  <nut-tabbar-item tab-title="Category" :dot="true">
    <template #icon>
      <Category></Category>
    </template>
  </nut-tabbar-item>
  <nut-tabbar-item tab-title="Find" :value="110">
    <template #icon>
      <Find></Find>
    </template>
  </nut-tabbar-item>
</nut-tabbar>
<script setup> import { Home, Category, Find, Notice } from "@nutui/icons-vue-taro"; import { ref } from "vue"; const flag = ref(false); const show = ref(false); const active = ref(0); const onClick = () => { show.value = true; }; const text = ref( "NutUI 是京东风格的移动端组件库,使用 Vue 语言来编写可以在 H5,小程序平台上的应用,帮助研发人员提升开发效率,改善开发体验。", ); </script>

`

期望的结果是什么?

解决报错

实际的结果是什么?

存在报错

环境信息

Image

其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions