I created a simple app to demonstrate the issue with calling a function with the wrong context in React class components.
Here is the error message I get on my local machine:
And here is the error message I get on CodeSandbox for the same error:
I understand that both these errors point to the same thing, but why are they showing different messages? I made sure that the versions of React and react-scripts are the same, so that's not the issue. Also, I tried downloading the code from CodeSandbox and running it locally, and I still got the first error message.
What gives?
You can see the sandbox here.

