Skip to content
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

v9 + WebGPURenderer: gl.xr.addEventListener is not a function #3402

Open
verekia opened this issue Nov 26, 2024 · 1 comment
Open

v9 + WebGPURenderer: gl.xr.addEventListener is not a function #3402

verekia opened this issue Nov 26, 2024 · 1 comment

Comments

@verekia
Copy link
Contributor

verekia commented Nov 26, 2024

With R3F v9.0.0-rc.1 and r171, there is a TypeError: gl.xr.addEventListener is not a function error:

Reproduction:

  • git clone [email protected]:verekia/three-gpu-ecosystem-tests.git
  • cd three-gpu-ecosystem-tests
  • cd next15-app-r3f9-react19
  • npm i --legacy-peer-deps

In next15-app-r3f9-react19/app/page.js, comment out the workaround:

    <Canvas
      style={{ height: '100vh' }}
      gl={canvas => new WebGPURenderer({ canvas })}
      // gl={canvas => {
      //   const renderer = new WebGPURenderer({ canvas })
      //   renderer.xr = { addEventListener: () => {} }
      //   return renderer
      // }}
    >
@verekia verekia changed the title v9: gl.xr.addEventListener is not a function v9 + WebGPURenderer: gl.xr.addEventListener is not a function Nov 26, 2024
@krispya
Copy link
Member

krispya commented Dec 6, 2024

@CodyJasonBennett do you know why this method is required and why it does not exist for WebGPURenderer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants