vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.32k stars 6.93k forks source link

[Bug Report][3.0.0-beta.14] error TS2305: Module '"vue"' has no exported member 'JSXComponent'. #15968

Closed devigner closed 1 year ago

devigner commented 1 year ago

Environment

Vuetify Version: 3.0.0-beta.14 Last working version: 3.0.0-beta.13 Vue Version: 3.2.41 Browsers: Firefox 107.0 OS: Mac OS 10.15

Steps to reproduce

pnpm build An error occures: error TS2305: Module '"vue"' has no exported member 'JSXComponent'.

Expected Behavior

The build is successful

Actual Behavior

The build fails

Reproduction Link

https://codesandbox.io/s/pedantic-shockley-8rf8o8?file=/src/main.js

devigner commented 1 year ago

Unfortunately creating a demo is not that easy. Our huge application throws the error.

`> vue-tsc --noEmit && vite build

node_modules/.pnpm/vuetify@3.0.0-beta.15_3nim2poxfuixesidb7kfxqvhz4/node_modules/vuetify/dist/vuetify.d.ts:2:51 - error TS2305: Module '"vue"' has no exported member 'JSXComponent'.

2 import { Ref, DeepReadonly, VNodeChild, PropType, JSXComponent, CSSProperties, ExtractPropTypes, ComputedRef, nextTick, ComponentInternalInstance, Prop, WritableComputedRef, InjectionKey, UnwrapRef, DirectiveBinding } from 'vue';


node_modules/.pnpm/vuetify@3.0.0-beta.15_3nim2poxfuixesidb7kfxqvhz4/node_modules/vuetify/lib/components/index.d.ts:2:69 - error TS2305: Module '"vue"' has no exported member 'JSXComponent'.

2 import { Ref, DeepReadonly, VNodeChild, PropType, ExtractPropTypes, JSXComponent, ComputedRef, nextTick, ComponentInternalInstance, Prop, WritableComputedRef, CSSProperties, InjectionKey, UnwrapRef } from 'vue';

node_modules/.pnpm/vuetify@3.0.0-beta.15_3nim2poxfuixesidb7kfxqvhz4/node_modules/vuetify/lib/iconsets/mdi-svg.d.ts:1:10 - error TS2305: Module '"vue"' has no exported member 'JSXComponent'.

1 import { JSXComponent, PropType } from 'vue';



Found 3 errors in 3 files.

Errors  Files
     1  node_modules/.pnpm/vuetify@3.0.0-beta.15_3nim2poxfuixesidb7kfxqvhz4/node_modules/vuetify/dist/vuetify.d.ts:2
     1  node_modules/.pnpm/vuetify@3.0.0-beta.15_3nim2poxfuixesidb7kfxqvhz4/node_modules/vuetify/lib/components/index.d.ts:2
     1  node_modules/.pnpm/vuetify@3.0.0-beta.15_3nim2poxfuixesidb7kfxqvhz4/node_modules/vuetify/lib/iconsets/mdi-svg.d.ts:1`
KaelWD commented 1 year ago

Fixed by e23e92c69

devigner commented 1 year ago

Thanks, that is awesome!