Subscribe on changes!

'XXX' cannot be used as a JSX component in vue3 & typescript.

avatar
Aug 10th 2022

Vue version

3

Link to minimal reproduction

None

Steps to reproduce

create a component in vue3 and typescript project

image

What is expected?

No error

What is actually happening?

'DtAddPane' cannot be used as a JSX component. Its instance type '{ $: ComponentInternalInstance; $data: {}; $props: Partial<{}> & Omit<Readonly<ExtractPropTypes<{}>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>; ... 10 more ...; $watch(source: string | Function, cb: Function, options?: WatchOptions<...> | undefined): WatchStopHandle; } & ... 4 more ... & { ...' is not a valid JSX element.ts(2786)

System Info

No response

Any additional comments?

No response

avatar
Aug 10th 2022

Please provide a reproduction