Getting error "Cannot read property 'ReactCurrentOwner' of undefined"
cliffkoh opened this issue · 2 comments
cliffkoh commented
Using https://github.com/ds300/TestCustomSourceExts as a starting point and replacing React Native with 0.45-rc.2, with the latest npm published version of react-native-typescript-transformer, and starting the packager through CLI:
react-native start --reset-cache --transformer node_modules/react-native-typescript-transformer --sourceExts ts,tsx
I am hitting the error (in the iOS simulator)
Cannot read property 'ReactCurrentOwner' of undefined"
in ReactGlobalSharedState.js:18:36
Would you know what I am missing here?
Thanks!
ds300 commented
I've seen that error before. IIRC it has something to do with a version clash between react-native
and react
.
Do you get the error if you use a fresh react-native project as a starting point instead of that test repo?
cliffkoh commented
Thanks, I don't if I use a fresh react-native project instead. I will close the issue. Thank you by the way, for your work here :)