I am working on a project using Next.js and have integrated @react-three/xr to create an immersive XR experience. However, I keep encountering a window is not defined error, which I suspect is related to the createXRStore function.
Additionally, the XR experience does not get triggered on my mobile device when using Next.js.
Could an example or guidance on how to properly use @react-three/xr in a Next.js environment be provided? Any help or advice would be greatly appreciated.
I am working on a project using Next.js and have integrated
@react-three/xr
to create an immersive XR experience. However, I keep encountering a window is not defined error, which I suspect is related to thecreateXRStore
function.Additionally, the XR experience does not get triggered on my mobile device when using Next.js.
Could an example or guidance on how to properly use @react-three/xr in a Next.js environment be provided? Any help or advice would be greatly appreciated.
Thanks!