Styled Components Prop Type Error in JavaScript with CoC and tsserver in Vim (No TypeScript)

I’m working on a React project using Emotion js for styled components. I’m using Vim with the CoC plugin and coc-tsserver for JavaScript development. Even though I’m not using TypeScript, I’m relying on tsserver for type checking in my JavaScript files.

I’m encountering type errors when passing props to Emotion styled components. Here’s an example of my code:

export const CommandInput = styled.div`
  display: flex;
  flex-direction: column;
  height: ${({ height }) => height};
`;

On using <CommandInput height="200px" /> im getting a type error:
enter image description here

My jsconfig.json:

{
  "compilerOptions": {
    "jsx": "react-jsx",
    "checkJs": true,
    "skipLibCheck": true,
    "baseUrl": ".",
  },
  "exclude": ["node_modules", "dist"]
}

Has anyone encountered a similar problem or have suggestions on how to fix this or configure to ignore it?