-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react_1.useState is not a function in NextJS with Typescript #508
Comments
trying several times i achieve to know a little bit more of where the problem is and it has something to do with the next js new app folder for routing. With the pages folder it works correct |
Do you have an example of how you implemented this in nextJs with I am getting following error for the same
|
|
Hey, I got this same issue. I believe it has to do with "By default, components inside app are React Server Components." which is a new part of NextJS 13. I was able to fix it by converting the component which included my Unity component to a client component by adding the |
hey! im using nextjs with typescript and im having this problem
i try to re make the project like in this another issue but it doesnt work.
Here is my code
and my folder structure
Originally posted by @rama142694 in #488 (comment)
The text was updated successfully, but these errors were encountered: