Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

177
Vistas
Cannot read properties of undefined (reading 'current')

I run into a three.js problem where I use .current from the useRef hook but I get an error. my text editor doesn't show the error but only the host shows it.enter image description here

Here is where I got the code: https://codesandbox.io/s/github/Rishit-5/stars-background-3d/tree/main/?file=/src/App.js

Thank you!

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Often these runtime errors are fixed by restarting your development server. Despite hot reload, some changes need the server to be restarted for example environment variables.

about 4 years ago · Juan Pablo Isaza Denunciar

0

in line 10 useFrame((state, delta, ref) => { try to remove the ref parameter. it should look like this useFrame((state, delta) => {

in function Stars(props) ref is defined as a constant.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda