My react project with "react": "^18.2.0", version and "react-select": "5.4.0", version, is getting errors today, this project was running smoothly till yesterday.
When I'm trying to build my project it's giving me this error below.
TS2322: Type '{ color: THEME.defaultHighLightColor; zIndex: number; accentColor?: Property.AccentColor | readonly string[] | Property.AccentColor[] | undefined; alignContent?: Property.AlignContent | readonly string[] | Property.AlignContent[] | undefined; ... 953 more ...; label?: string | undefined; }' is not assignable to type 'CSSObjectWithLabel'. Type '{ color: THEME.defaultHighLightColor; zIndex: number; accentColor?: Property.AccentColor | readonly string[] | Property.AccentColor[] | undefined; alignContent?: Property.AlignContent | readonly string[] | Property.AlignContent[] | undefined; ... 953 more ...; label?: string | undefined; }' is not assignable to type 'CSSObject'.
Property 'accentColor' is incompatible with index signature.
Type 'AccentColor | readonly string[] | AccentColor[]' is not assignable to type 'CSSInterpolation'.
Type 'readonly string[]' is not assignable to type 'CSSInterpolation'.
Type 'readonly string[]' is not assignable to type 'ArrayCSSInterpolation'.
17 | const customStyles: StylesConfig<ISelectorOption> = {
18 | menuPortal: (styles, _): CSSObjectWithLabel => {
19 | return {
| ^^^^^^^^
20 | ...styles,
| ^^^^^^^^^^^^^^^^
21 | color: THEME.defaultHighLightColor,
| ^^^^^^^^^^^^^^^^
22 | zIndex: 9999,
| ^^^^^^^^^^^^^^^^
23 | };
| ^^^^^^^
24 | },
25 | control: (styles, { isDisabled }): CSSObjectWithLabel => {
26 | return {
I tried deleting node_modules and package.lock.json and imported react-select 5.4.0 exact version still I'm getting the same issues