vuejs / composition-api

Composition API plugin for Vue 2

Home Page:https://composition-api.vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type '{ install: (Vue: VueConstructor<Vue>) => void; }' has no call signatures

MartinX3 opened this issue · comments

Using IntelliJ IDEA, vue 2.6.14, vuetify 2.6.7 and typescript 4.7.4 every export default defineComponent({ throws the error:

TS2349: This expression is not callable.   Type '{ install: (Vue: VueConstructor<Vue>) => void; }' has no call signatures.
export default const Plugin: {install: (Vue: VueConstructor) => void}
@vue/composition-api

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

@antfu please reopen
v2.zip

> vue-tsc --noEmit && vite build

src/App.vue:4:16 - error TS2349: This expression is not callable.
  Type '{ install: (Vue: VueConstructor<Vue>) => void; }' has no call signatures.

4 export default defineComponent({
                 ~~~~~~~~~~~~~~~


Found 1 error in src/App.vue:4

image

{ defineComponent }

Please shoot me.
IntelliJ bullied me with its automatic generated import.
Thank you.