infinitered / infinitered/reactotron

Uncaught TypeError: Cannot convert undefined or null to object

Open
#1,155 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.6k
Forks
972
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the React/Redux setup with Reactotron enabled, then inspect the index.js stack locations around lines 82-109 and the onCommand path around line 138. Trace which subscription value reaches Object.entries as null or undefined, and verify that starting Reactotron no longer produces the uncaught TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, redux, typescript
Domain
desktop, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.