question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React 18: Cannot read properties of undefined (reading 'destroy')

See original GitHub issue

I’ve upgraded my app to React 18 and I’m getting:

Uncaught TypeError: Cannot read properties of undefined (reading 'destroy')

every time react-ace editor is unmounted.

I saw this PR:

https://github.com/securingsincity/react-ace/pull/1293

when it will be merged?

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
securingsincitycommented, Apr 15, 2022
0reactions
ttessarolocommented, Apr 11, 2022

Meanwhile I just migrate to: https://github.com/suren-atoyan/monaco-react

an active repo with many pros (few cons) and near zero refactoring.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'destroy' of undefined #186
I'm using it with typescript and getting following error. TypeError: Cannot read property 'destroy' of undefined at ReactFullpage.destroy. Do ...
Read more >
How to deal or remove "Cannot read property 'destroy' of null"
"Cannot read property 'destroy' of null" - This error has occurred because the underlying js implementation gets failed to initialize the global ...
Read more >
javascript - TypeError: Cannot read properties of undefined ...
The error is on client.destroy() . I've been looking in the docs and guides and on google but can't find anything on how...
Read more >
cannot read properties of undefined (reading 'play')
Here's an example of a JavaScript TypeError: Cannot read property of undefined thrown when a property is attempted to be read on an...
Read more >
Strict Mode
It creates a refactoring hazard where you can't change the implementation details of a component because a parent might be reaching into its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found