Secretmapper / react-image-annotation

An infinitely customizable image annotation library built on React
https://secretmapper.github.io/react-image-annotation/
MIT License
326 stars 135 forks source link

Uncaught TypeError: Cannot read property '__reactInternalInstance$npn41m7bex' of null #43

Open dkay92ad opened 4 years ago

dkay92ad commented 4 years ago

I'm making use of react-image-annotation component version 0.9.9 for react 15.6.2.

I have used the exact same code which is provided in the "Usage" section. This is the error I'm getting in the console when I launch the react app in browser.

Uncaught TypeError: Cannot read property '__reactInternalInstance$npn41m7bex' of null at Object.getClosestInstanceFromNode

I have been receiving the same error for all the earlier versions(0.9.9 version to the earliest version 0.9.0) of the react-image-annotation component. I wasn't able to use the latest version 0.9.10 because it's making use of React.createRef() API, which was only introduced from react 16.3.