samdenty / console-feed

Captures console.log's into a React Component 🔥
https://stackblitz.com/~/github.com/samdenty/console-feed
MIT License
649 stars 106 forks source link

bug: Uncaught TypeError: array[(array.length - 1)].split is not a function #108

Closed xflihaibo closed 1 year ago

xflihaibo commented 1 year ago

version:console-feed@3.4.0 node: v14.19.3


const [logs, setLogs] = useState([{method:'log',data: [1,2,'type',{name:1},[1,2,3]]}])

/src/Component/react-inspector/index.tsx:33 Uncaught TypeError: array[(array.length - 1)].split is not a function logs.data Complex type is error

coolRoger commented 1 year ago

@xflihaibo do you get fixed on this bug? i am facing the same issue too.

heracek commented 1 year ago

@coolRoger The issues was introduced in 3.4.0 by #105. Downgrading to 3.3.0 worked for me.

meds commented 1 year ago

Came here to report this - simple repo (just click 'break me') https://codesandbox.io/s/console-feed-forked-h7lpoq?file=/src/index.js

Downgrading that to 3.3.0 fixes it as per @heracek comment.

jooy2 commented 1 year ago

I have submitted a new PR regarding this issue, hopefully this will be resolved quickly. (#118)

samdenty commented 1 year ago

fixed in 3.4.5