primitives icon indicating copy to clipboard operation
primitives copied to clipboard

Cannot find module '@radix-ui/react-accordion' or its corresponding type declarations.

Open LauratHaaga opened this issue 1 year ago • 1 comments

Hi,

I'm currently using shadcn component lib and I'm having this issue "Cannot find module '@radix-ui/react-accordion' or its corresponding type declarations.".

The setup of course is done by shadcn via CLI, I only imported it.

I tried to remove @radix-ui/react-accordion and add it again but it didn't work, can someone please suggest any fix!

Thanks.

I'm using:

  • yarn
  • @radix-ui/react-accordion - 1.1.2
  • TypeScript: 4.9.5

LauratHaaga avatar Jan 08 '24 09:01 LauratHaaga

Hi, to solve this problem, just install the missing module, with yarn, npm or pnpm (npm i @radix-ui/react-accordion)

Samy572 avatar Feb 13 '24 15:02 Samy572

This isn't an issue with the primitives library.

benoitgrelard avatar Mar 05 '24 11:03 benoitgrelard