When I try and do the part of the preact getting started here and add this.props.style.compile() I get the following error in VSCode and CDK:
Property 'style' does not exist on type 'Readonly<{ resource: MControl<IControl>; } & IControl & Attributes & { children?: ComponentChild[...'. Did you mean 'styles'?
Changing the code to styles as suggested by the IDE yields the following error:
Cannot invoke an expression whose type lacks a call signature. Type 'string | number' has no compatible call signatures.
When I try and do the part of the preact getting started here and add
this.props.style.compile()
I get the following error in VSCode and CDK:Property 'style' does not exist on type 'Readonly<{ resource: MControl<IControl>; } & IControl & Attributes & { children?: ComponentChild[...'. Did you mean 'styles'?
Changing the code to
styles
as suggested by the IDE yields the following error:Cannot invoke an expression whose type lacks a call signature. Type 'string | number' has no compatible call signatures.