Akryum / floating-vue

💬 Easy tooltips, popovers, dropdown, menus... for Vue
https://floating-vue.starpad.dev/
MIT License
3.28k stars 335 forks source link

TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect') #972

Closed dxhuii closed 1 year ago

dxhuii commented 1 year ago
image

"nuxt": "^3.6.1", "floating-vue": "2.0.0-beta.24",

<script setup lang="ts">
definePageMeta({
  name: 'subject',
  key: route => route.fullPath
})
const route = useRoute()
const subject = useSubjectStore()
const id = $(computedEager(() => route.params.id as string))
await subject.getSubject(id)
const { subjectData: data } = subject
useHead({
  title: () => `${data?.name} | 番组`
})
</script>

进入页面有 await 调用接口,会报这个错误。 如果没有。不会报错。麻烦看下。

This error will be reported if the page is entered with an await call interface. If not. No error is reported. Please take a look.

antfu commented 1 year ago

We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.

Why reproduction is required