infinitered / reactotron

A desktop app for inspecting your React JS and React Native projects. macOS, Linux, and Windows.
https://docs.infinite.red/reactotron/
MIT License
14.93k stars 944 forks source link

Uncaught TypeError: Cannot convert undefined or null to object #1155

Open lisandrolan opened 5 years ago

lisandrolan commented 5 years ago

Hi, Im using ReactJS with Redux, If I do not start Reactotron everything works well, but when I start Reactotron I get the following message:

Uncaught TypeError: Cannot convert undefined or null to object at Function.entries () at index.js:87 at Array.forEach () at c (index.js:82) at Object.sendSubscriptions (index.js:109) at Object.onCommand (index.js:138) at index.js:499 at Array.forEach () at u (index.js:498) at WebSocket.r.on.r.onmessage (index.js:508)

obsidianart commented 5 years ago

@lisandrolan I think the error is there https://github.com/infinitered/reactotron-redux/issues/15

adrielklein commented 5 years ago

I'm running into the same issue as @lisandrolan .

I read your issue in infinitered/reactotron-redux#15 @obsidianart , but it doesn't make any sense to me.

Has anyone come up with a solution to this problem?

obsidianart commented 5 years ago

@adrielklein You can modify the compressed file where it throws and it will run. I think the issue is in the configuration but I can't understand why and probably we all did the same mistake

sdiaz commented 4 years ago

Are you using reactotron with .configure({host: .... })?

In my case, I must develop with physical device, and when using host, sagas start raising errors like that. So I have to quit using reactotron.

rmevans9 commented 4 years ago

@sdiaz I am sorry to hear you stopped using reactotron. I am interested in the fact that when you use host things start failing. Do you have an easy reproduction example so I can dig into what is going on?

Novsochetra commented 4 years ago

@rmevans9 I face that same problem also. when I connected to my real physical device (android). Here is the step to reproduce the error:

  1. On terminal, I enter this command adb reverse tcp:9090 tcp:9090
  2. Reload my app on physical device then i got this error

Thank you before hand for helping.

Novsochetra commented 4 years ago

Are you using reactotron with .configure({host: .... })?

In my case, I must develop with physical device, and when using host, sagas start raising errors like that. So I have to quit using reactotron.

@sdiaz does your physical device is connect to computer via wifi or cable? In my case I solved my problem by connected via wifi. then in your reactron config file you can put like this

Bonfahh commented 4 years ago

Please refer to this link https://github.com/infinitered/reactotron-redux/compare/v3.1.1...v3.1.2 I`ve solved this problem only by adding true to createEnhancer(), so Reactotron.createEnhancer(true) solves it.

obsidianart commented 4 years ago

@Bonfahh solved