react-unity-webgl in Next.js project not working #488
-
I am trying to get this code working in a Next.js build, however the game does not load on the page and I get no errors in the console So I am just at a loss on why the game won't load. I am using unity: 2021.3.16f1, (to export game) "next": "^13.1.6", "react": "^18.2.0", "react-unity-webgl": "^9.4.0" here is the code:
and here is a screen shot of my folder build in my static folder |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
So I think this had something to do with my previous build I started a fresh build from next.js using the create-next-app command |
Beta Was this translation helpful? Give feedback.
-
hey! im also using nextjs with typescript and im having this problem |
Beta Was this translation helpful? Give feedback.
So I think this had something to do with my previous build I started a fresh build from next.js using the create-next-app command
npx create-next-app@latest --typescript
and it works just fine.