reactotron icon indicating copy to clipboard operation
reactotron copied to clipboard

Uncaught TypeError: Cannot convert undefined or null to object

Open lisandrolan opened this issue 5 years ago • 9 comments

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)

lisandrolan avatar Sep 27 '19 14:09 lisandrolan

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

obsidianart avatar Oct 17 '19 03:10 obsidianart

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?

adrielklein avatar Oct 25 '19 16:10 adrielklein

@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

obsidianart avatar Oct 27 '19 15:10 obsidianart

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 avatar Dec 08 '19 15:12 sdiaz

@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?

rmevans9 avatar Dec 08 '19 15:12 rmevans9

@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 avatar Dec 11 '19 08:12 Novsochetra

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

Novsochetra avatar Dec 11 '19 09:12 Novsochetra

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.

Bonfahh avatar Dec 29 '19 02:12 Bonfahh

@Bonfahh solved

obsidianart avatar Dec 30 '19 15:12 obsidianart