While trying to implement testing, I was getting the error:
Cannot read property 'isReactComponent' of undefined
After some diligent internet scouring, I came across a similar issue on react-table, where they came to the conclusion that the lack of a prototype on arrow functions was the root cause and the method that they had in place to normalize, didn't cover that. @rpalermodrums suggested using Object.getPrototypeOf as a solution. It works for me locally, so fingers crossed. I'm still a little new to software engineering, so I can't say that I'm fully confident that I understand what the potential ramifications are, although it seems pretty straight-forward. Please don't kill me.
While trying to implement testing, I was getting the error:
After some diligent internet scouring, I came across a similar issue on react-table, where they came to the conclusion that the lack of a prototype on arrow functions was the root cause and the method that they had in place to normalize, didn't cover that. @rpalermodrums suggested using Object.getPrototypeOf as a solution. It works for me locally, so fingers crossed. I'm still a little new to software engineering, so I can't say that I'm fully confident that I understand what the potential ramifications are, although it seems pretty straight-forward. Please don't kill me.