Subscribe on changes!

the preject create by vite find a error when run vue-tsc in @vue/runtime-dom/dist/runtime-dom.d.ts

avatar
Aug 15th 2021

Version

3.2.2

Steps to reproduce

npm run build

hospital-service-platform@0.0.0 build vue-tsc --noEmit && vite build

node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts:1489:15 - error TS2320: Interface 'Element' cannot simultaneously extend types 'VNode<RendererNode, RendererElement, { [key: string]: any; }>' and 'ReactElement<any, any>'. Named property 'key' of types 'VNode<RendererNode, RendererElement, { [key: string]: any; }>' and 'ReactElement<any, any>' are not identical.

1489 interface Element extends VNode {} ~~~~~~~

node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts:1489:15 - error TS2320: Interface 'Element' cannot simultaneously extend types 'VNode<RendererNode, RendererElement, { [key: string]: any; }>' and 'ReactElement<any, any>'. Named property 'props' of types 'VNode<RendererNode, RendererElement, { [key: string]: any; }>' and 'ReactElement<any, any>' are not identical.

image

What is expected?

no

What is actually happening?

no

avatar
Aug 15th 2021

Give project for reproduction, please.

avatar
Aug 16th 2021

Give project for reproduction, please.

https://github.com/wython/my-vue-app

@HcySunYang

just a empty project

avatar
Aug 16th 2021

Can't reproduce: I cloned the app, tried with both yarn and npm install, both successfully type check and build.