uni-helper / vitesse-uni-app

由 Vite & uni-app 驱动的跨端快速启动模板
https://vitesse-docs.netlify.app/
MIT License
315 stars 31 forks source link

vueuse 无法使用 #30

Closed chengazhen closed 7 months ago

chengazhen commented 7 months ago

描述问题

在仓库里面发现了 vueuse 的自动导入, 但是尝试使用的时候直接报错

"TransitionGroup" is not exported by "node_modules/vue-demi/lib/index.mjs", imported by "node_modules/@vueuse/core/index.mjs".

复现

<script lang="ts" setup>
const props = defineProps({
  name: String,
})
const emits = defineEmits(['update:name'])
const { value: name } = useQuery('name')
const value = useVModel(props, 'name', emits)
</script>

<template>
  <view>{{ name }}</view>

  <HiCounter />
</template>

<route lang="json">
{
  "layout": "home"
}
</route>

系统信息

System:
    OS: Windows 11 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
    Memory: 2.35 GB / 15.76 GB
  Binaries:
    Node: 21.5.0 - ~\.nvmd\versions\21.5.0\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.2.4 - ~\.nvmd\versions\21.5.0\npm.CMD
    pnpm: 8.9.2 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (120.0.2210.133)
    Internet Explorer: 11.0.22621.1

使用的包管理器

pnpm

核对

KeJunMao commented 7 months ago

未能复现

chengazhen commented 7 months ago

有使用 vueuse 的功能吗? 我看模板里面没有任何使用 vueuse的代码, 只是在自动导入设置了 vueuse的自动导入

KeJunMao commented 7 months ago

使用的你提供的复现代码