Trying to compile a project with preact as a dependency and get the following error:
node_modules/preact/dist/preact.d.ts(48,17): error TS2559: Type 'Component<PropsType, StateType>' has no properties in common with type 'ComponentLifecycle<PropsType, StateType>'.
This only happens with ts 2.4.0, 2.3.x works file
It looks like it has to do with the introduction of Weak types
ComponentLifecycle should have at least one overlapping property with Component
This is likely already fixed by https://github.com/developit/preact/pull/730 (merged yesterday)
Yup, that fix will go out in 8.2.
Feel free to close this then :)
there's a workaround: fix your typescript version to 2.3.4 until Preact 8.2 published.
Waiting for this one too.
getting error still
Most helpful comment
Waiting for this one too.