React 18: Cannot read properties of undefined (reading 'destroy')
See original GitHub issueI’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:
- Created a year ago
- Reactions:4
- Comments:10 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed in version 10 https://github.com/securingsincity/react-ace/releases/tag/v10.0.0
Meanwhile I just migrate to: https://github.com/suren-atoyan/monaco-react
an active repo with many pros (few cons) and near zero refactoring.