"useDisclosure is not a function" #1238
-
I'm trying to implement a
on this line
I am importing |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
are you importing it from v2 package? import {useDisclosure} from '@nextui-org/react'; https://codesandbox.io/p/sandbox/3tq4rf?file=%2FApp.jsx&utm_medium=sandpack |
Beta Was this translation helpful? Give feedback.
-
If you're still having this issue, add |
Beta Was this translation helpful? Give feedback.
-
The error you're encountering, Adding Next.js provides a distinction between code that runs on the client side and code that runs on the server side. Sometimes, certain functions or hooks should only be used on the client side due to their reliance on the browser environment or other client-specific features. Adding However, without more context about your code and the specific problem you're encountering, it's challenging to provide a precise solution. It would be helpful to see the relevant code where you're using |
Beta Was this translation helpful? Give feedback.
are you importing it from v2 package?
https://codesandbox.io/p/sandbox/3tq4rf?file=%2FApp.jsx&utm_medium=sandpack