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

Console logging fails when passing a BigInt ("Do not know how to serialize a BigInt") #90

Closed dfahlander closed 1 year ago

dfahlander commented 2 years ago

To reproduce:

const obj = {
  foo: 3n
};

console.log(obj);

I believe that this file would need to detect bigints (typeof x === 'bigint') and handle encoding/decoding them.