You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
So I was switching my project to typescript and in this process I got Cannot read property 'render' of undefined.
After following the stack trace, I ended up in this line.
Debugging showed that componentClass.prototype was undefined, causing it to throw on trying to get a property on undefined. Changing the line to the below fixed everything and all components worked.
Im not sure if this is a bug on my end or on mobx-react. Right now the "fix" I am using is replacing the line of code, but that isn't very maintainable.
The text was updated successfully, but these errors were encountered:
So I was switching my project to typescript and in this process I got
Cannot read property 'render' of undefined
.After following the stack trace, I ended up in this line.
Debugging showed that
componentClass.prototype
was undefined, causing it to throw on trying to get a property on undefined. Changing the line to the below fixed everything and all components worked.This is the stack trace, tsconfig, and relevant files
Im not sure if this is a bug on my end or on mobx-react. Right now the "fix" I am using is replacing the line of code, but that isn't very maintainable.
The text was updated successfully, but these errors were encountered: