component-register icon indicating copy to clipboard operation
component-register copied to clipboard

missing type DocumentAndElementEventHandlers from elements.d.ts

Open marcusho21 opened this issue 2 years ago • 1 comments

I tried to use solid-element to setup a web component library project, but for some reason when trying to generate types during build, it throws error

../../node_modules/component-register/types/element.d.ts:185:26 - error TS2304: Cannot find name 'DocumentAndElementEventHandlers'.

marcusho21 avatar Jun 22 '23 23:06 marcusho21

bump! I'm having the same issue here. Tried many different stuff and can't seem to have any tsconfig that solves it.

randjey avatar Sep 30 '23 12:09 randjey

On the consumer side, the only thing we can do is adding

    "skipLibCheck": true

to our tsconfig, which basically does not check any typing in libraries, which is a shame.

This should be fixed in this project. To fix this issue here, there needs to be support for TS5. In short, there's two things that can be done, either

Etienne-M avatar Feb 26 '24 17:02 Etienne-M