Replies: 5 comments 3 replies
-
You're likely dealing with a bundler or module resolution issue. Here's how to address it:
This should resolve the import issue. |
Beta Was this translation helpful? Give feedback.
-
i am also facing same issue, tried all solutions but did not work |
Beta Was this translation helpful? Give feedback.
-
Im having a similar issue with the @radix-ui/react-tabs. No other issue with my other radix imports. |
Beta Was this translation helpful? Give feedback.
-
is it possible that the error is due to next js 15 and react 19? |
Beta Was this translation helpful? Give feedback.
-
I'm having this same problem with a fresh install of https://github.com/vercel/nextjs-postgres-nextauth-tailwindcss-template None of these solutions appear to fix it. |
Beta Was this translation helpful? Give feedback.
-
I added the "Select" component using the exact command from the shadcn website, but keep getting this error:
Module not found: Can't resolve '@radix-ui/react-select'
, which is imported from the shadcn Select component for primitives.I am able to import other
@radix-ui
packages, for example@radix-ui/accordion
, and I have confirmed that@radix-ui/react-select
exists in the correct directory adjacent to@radix-ui/accordion
. This confirms to me it isn't a global configuration problemThings I have tried:
@radix-ui/react-select
package../../node_modules/...etc
"@radix-ui/react-select
, this also does not work.next.config.mjs
andtsconfig.json
import * as SelectPrimitive from '@radix-ui/react-select/dist/index';
What could I be missing here? This blocks the usage of the Select component, and im curious if anyone else has seen this problem before.
Beta Was this translation helpful? Give feedback.
All reactions