Closed ivyroot closed 2 years ago
Yes I also have this problem. When deploying to Vercel it also shows this error message.
Application error: a client-side exception has occurred (see the browser console for more information).
Did you get anywhere with this @ivyroot?
@maxsilvauk i was not able to resolve this issue in my project. Instead I made a fresh template made with Create React App, added a Canvas element in there as per the R3F docs here: https://docs.pmnd.rs/react-three-fiber/getting-started/your-first-scene#setting-up-the-canvas, then copied the code I wrote into that. Built fine that way.
@ivyroot - I would use this instead https://github.com/pmndrs/react-three-next
+1 ... Same issue for me.
Downgrading r3f from ^8.8.4 to 8.7.2 fixed this for me
Try updating R3F to latest or upgrading your lockfile and doing a clean install. This is related to https://github.com/pmndrs/react-three-fiber/issues/2533 which is fixed in newer patches.
This issue should be fixed with the latest r3f version thanks @CodyJasonBennett
I took the following steps to build the example site and export it as a static site:
yarn create r3f-app next my-app
cd my-app
npm run-script dev
==> site works fine when browsing to localhost:3000npm run-script export
thenhttp-server out
(after first npm installing http-server globally)When viewing the page there is a client-side error:
"Application error: a client-side exception has occurred (see the browser console for more information)."
Console output looks like this: