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

TypeError: Cannot read properties of undefined (reading 'elements') - MeshReflectorMaterial #2138

Open
sovetski opened this issue Oct 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sovetski
Copy link

sovetski commented Oct 26, 2024

  • three version: 0.169.0
  • @react-three/fiber version: 9.0.0-alpha.8
  • @react-three/drei version: 9.115.0
  • node version: v20.10.0
  • npm (or yarn) version: 10.2.3

Problem description:

With the code below I am getting this error: TypeError: Cannot read properties of undefined (reading 'elements')

Relevant code:

          <mesh position={[0, -1.5, 0]} rotation={[-Math.PI / 2, 0, 0]}>
              <planeGeometry args={[50, 50]} />
              <MeshReflectorMaterial
                  blur={[400, 400]}
                  resolution={1024}
                  mixBlur={1}
                  mixStrength={15}
                  depthScale={1}
                  minDepthThreshold={0.85}
                  color="#dbecfb"
                  metalness={0.6}
                  roughness={1}
              />
          </mesh>
@sovetski sovetski added the bug Something isn't working label Oct 26, 2024
@abernier
Copy link
Member

@sovetski can you paste the error's calls stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants