CyberNika / v-contextmenu

🖱 ContextMenu based on Vue 3 & Vue 2
https://cybernika.github.io/v-contextmenu/
MIT License
918 stars 112 forks source link

JSX element type 'VContextmenu' does not have any construct or call signatures #122

Closed crystalfp closed 2 years ago

crystalfp commented 2 years ago

With the latest vue-tsc (0.37.2) and typescript 4.7.3 suddenly when doing a npm run build under Vue3 + Vite the following error appears on v-contextmenu: error TS2604: JSX element type 'VContextmenu' does not have any construct or call signatures. Same error for v-contextmenu-item: error TS2604: JSX element type 'VContextmenuItem' does not have any construct or call signatures. Before the upgrade the build never had this error. Thanks for helping! mario

crystalfp commented 2 years ago

Seems a more general problem solved in https://github.com/johnsoncodehk/volar/issues/1414#issuecomment-1148867233