You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React project has a compilation error when creating a div with boxSizing property using string value
Types of property 'boxSizing' are incompatible.
Type 'string' is not assignable to type 'BoxSizing | readonly NonNullable<BoxSizing | undefined>[] | readonly BoxSizing[] | undefined'.
To reproduce:
Create component that has boxSizing property defined with string 'content-box'
Types of property 'position' are incompatible.
Type 'string' is not assignable to type 'Position | NonNullable<Position | undefined>[] | readonly Position[] | undefined'.ts(2769)
Adding as const fixes the issue, but I'd have to apply this change to hundreds of files.
Current behavior:
React project has a compilation error when creating a div with boxSizing property using string value
To reproduce:
Create component that has boxSizing property defined with string 'content-box'
Expected behavior:
Project compiles
Environment information:
react
version: 18.2.0@emotion/react
version: 11.11.3The text was updated successfully, but these errors were encountered: