Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'on' of undefined #117

Open
zbeyens opened this issue May 31, 2019 · 3 comments
Open

Cannot read property 'on' of undefined #117

zbeyens opened this issue May 31, 2019 · 3 comments

Comments

@zbeyens
Copy link

zbeyens commented May 31, 2019

I have this error when including <DevTools />

image

Using these packages:

"mobx": "^5.9.4",
"mobx-react": "^6.0.2",
"mobx-react-devtools": "^6.1.1",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-scripts": "^3.0.1",
@Kizmar
Copy link

Kizmar commented May 31, 2019

Same issue here after updating from version 6.0.3 to 6.1.1 (in addition to several other packages). Reverted back to version 6.0.3 and I'm still getting the error. Must be related to other packages being updated? I have all the same package versions @zbeyens listed.

This is what I had previously that was working (with 6.0.3):
"mobx": "^5.9.0",
"mobx-react": "^5.4.3",
"mobx-react-router": "^4.0.5",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.8",

@mweststrate
Copy link
Member

mweststrate commented May 31, 2019 via email

@Kizmar
Copy link

Kizmar commented May 31, 2019

The MobX-react devtools (either as package or browser plugin) are no longer supported. Instead, the following tools can be analyzed to analyze your mobx-react application:

  • Visualizing re-rendering of components is now part of the standard React devtools
  • The dependency tree of a compent tree can be inspected by showing the state of the useObserver hook in the React devtools (at the time of this release it displays as just Object, but the next iteration of the React devtools will support those properly)
  • Spying on events can still be done with the MobX-react browser plugin, through the mobx-logger package or manually by using the spy or trace utility from the mobx package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants