compiled icon indicating copy to clipboard operation
compiled copied to clipboard

Property 'css' does not exist error after upgrade 0.9.1 to 0.10.2

Open AleksandrMalafeev opened this issue 3 years ago • 3 comments

Describe the bug Upgrading @compiled/react from 0.9.1 to 0.10.2 gave me an error:

Property 'css' does not exist on type 'IntrinsicAttributes & ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & StyledProps & { ...; }'.

214 | <StatusInfo> 215 | <StatusIcon

216 | css={{ | ^ 217 | background: isSucceeded ? 'var(--colorSucceess)' : 'var(--colorFailure)' 218 | }} 219 | >

Is it a known issue?

AleksandrMalafeev avatar Feb 01 '22 22:02 AleksandrMalafeev

HI @AleksandrMalafeev,

Could you please provide more details, eg steps to replicate. I don't think that we ever come across a similar issue.

Thanks

pancaspe87 avatar Feb 09 '22 04:02 pancaspe87

Same thing happening for me in 0.10.4. I'm using fork-ts-checker-webpack-plugin.

mmakarin avatar Apr 12 '22 13:04 mmakarin

@pancaspe87 Im also seeing this with 0.11.1.

Screen Shot 2022-10-24 at 1 50 13 pm

repro is here: https://github.com/glomotion/compiled-issue-repro

glomotion avatar Oct 24 '22 03:10 glomotion