Open Dante-101 opened 7 years ago
Try adding breakpoint at this line, and check whether vcomponent.type
is valid or not.
vcomponent.type is valid. It is set to a component of this external package - https://github.com/Pomax/react-onclickoutside
Here is the debug session screenshot
OK. Can you add a simple code example to reproduce this problem?
I got the same exception a few days ago and I fixed it after adding "key" prop for
I'm wrong, just forget the above comment...The exception still exists...I tried to traceback with chrome dev tools tonight, it shows that the code using createReactClass will trigger this exception, "$cache" prop in ReactComponent is initialized in constructor...However, ReactClassComponent.prototype used by createReactClass only mixin ReactComponent.prototype and never call the constructor of ReactComponent...I'm working on it, maybe I can give you a PR tomorrow. @Lucifier129
@ChieveiT Great!
@Lucifier129 I have the same problem, it persisted for months, checked back today and still the same. Is there anything we can do to help it or at least is there an explanation of what's wrong?
@drcmda It seems like the constructor of super class was not invoked, so this.$cache
is undefined
, read parentContext
property from undefined
would throw error.
i has the same error: Uncaught TypeError: Cannot set property 'parentContext' of undefined at initVcomponent (react-lite.common.js:433)
beside,this page use react-router,and other pages(no router) work sucessfully
I have gotten the same error verbatim. The likely difference in my setup from others is that I am using electron. I am uncertain if this would impact react-lite in anyway?
Has a solution been reached for this issue or simply an explanation?
I am getting this error with
react-lite
. The app works fine withreact
andreact-dom
. Any suggestions what could be wrong?