TS2322: Type
ForwardRefExoticComponent<Omit<IconProps, 'ref'> & RefAttributes<SVGSVGElement>>
is not assignable to type Icon
Types of property defaultProps are incompatible.
....
Expected behavior
To not get any errors
Screenshots
Getting this error:
Context (please complete the following information):
Additional notes
This error wasn't there prior to updating Nextjs (and related packages) from Nextjs 13 to Nextjs 14
Describe the bug
Copy paste a custom icon example from the readme page into your Nextjs 14 project:
Getting a Typescript error:
Expected behavior
To not get any errors
Screenshots
Getting this error:
Context (please complete the following information):
Additional notes
This error wasn't there prior to updating Nextjs (and related packages) from Nextjs 13 to Nextjs 14