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

261
Views
Cannot assign to read only property 'displayName' of object

I am facing a simple issue I am getting the error "Cannot assign to read only property 'displayName' of object" im adding a setting where you can change your display name in the settings page.

 function Changename() {
        currentUser.displayName = setUserName
    }

I am using firebase for this project, I cant find anywhere to change this read property to read and write in firebase.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

My guess is that your currentUser is a reference to a User/UserInfo object from Firebase Authentication. In that case displayName property is indeed read-only. If you want to change the user's display name, call updateProfile as shown in the documentation on updating the current user's profile.

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!