Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

172
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!