vuejs / composition-api

Composition API plugin for Vue 2
https://composition-api.vuejs.org/
MIT License
4.19k stars 343 forks source link

TypeError: Cannot read properties of undefined (reading 'length') #949

Closed turkyden closed 2 years ago

turkyden commented 2 years ago

貌似更新了新版的 @vue/composition-api 后报错了,求助大佬 ... @antfu

@vue/composition-api: "^1.7.0"
vue: "^2.6.14",
image image
antfu commented 2 years ago

v1.7.0 changed nothing about the version range of Vue. https://github.com/vuejs/composition-api/commits/main


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

zcqno1 commented 2 years ago

Suffer from it too. Have a check on Vue version. Vue has just published v2.7 with built-in composition api support.

vue: "~2.6.14",

Limit Vue version to 2.6.x resolves my issue.