Closed pleodigital closed 2 weeks ago
Hi @pleodigital - we don't call xr
anywhere in this library.
Are you sure it's not a @react-three-fiber:
issue?
Well, I'm not entirely sure, but I assumed that the issue is related to this package because, while testing, the error happened when I was using GlobalCanvas
, whereas it did not occur with the regular Canvas
from react-three-fiber
.
Hello,
I'm working on a Turborepo project with the following structure:
apps
app a
app b
packages
ui
Within my
ui
package, I have several components that utilizer3f-scroll-rig
components. After importing them into my apps, everything seems to work fine. However, while testing my apps with PageSpeed or Lighthouse, the websites break and return the following error:Cannot read properties of null (reading 'xr')
I was able to reproduce this error on several occasions on my local machine using those tools. Initially, the error was accompanied by a "webGL context loss" error, but I can no longer reproduce the entire error scenario locally.
Any ideas on what might be causing this or how to resolve it?
Turborepo Version:
1.12.4
Libraries:
react
:18.12.0
@14islands/r3f-scroll-rig
:8.13.1
@react-three-fiber
:18.15.19