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

390
Views
immer - Uncaught TypeError: Cannot perform 'getPrototypeOf' on a proxy that has been revoked

I'm using immer in my codebase, a bit of code that appears to be totally valid immer is throwing this error: Uncaught TypeError: Cannot perform 'getPrototypeOf' on a proxy that has been revoked.

This is my code:

produce(obj, draft => {
    draft.field = produce(otherObj, otherDraft => {
         const {a} = draft
         if (a) {
             ...
             more non-immer code, other than assigning to draft/otherDraft
         }
     })
})

Is this possibly caused by nesting the produces? I'm having difficulty understanding the error or why I would be seeing it due to this code.

about 4 years ago · Juan Pablo Isaza
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!