meteor-devtools-evolved
meteor-devtools-evolved copied to clipboard
Uncaught DOMException when using mongo-decimal and a client collection includes a document with a Decimal object.
I have a small Meteor project at https://github.com/gfbeqs/mongo-decimal-test that reproduces the issue
inject.js:1 Uncaught DOMException: Failed to execute postMessage on Window: function Decimal(v) {
var e, i, t,
x = this;
// Decimal called without new.
if ...<omitted>... } could not be cloned.
at e.sendMessage (chrome-extension://ibniinmoafhgbifjojidlagmggecmpgf/build/inject.js:1:29403)
at u (chrome-extension://ibniinmoafhgbifjojidlagmggecmpgf/build/inject.js:1:33872)
at g (chrome-extension://ibniinmoafhgbifjojidlagmggecmpgf/build/inject.js:1:24267)
at m (chrome-extension://ibniinmoafhgbifjojidlagmggecmpgf/build/inject.js:1:24542)
at j (chrome-extension://ibniinmoafhgbifjojidlagmggecmpgf/build/inject.js:1:24432)```
Happening to me as well - have to disable the devtools when working with data that contains Decimal128.
Guys, my life has been very crazy at the moment, but now I think I will have some of my bandwidth back and I will certainly check this. Sorry about that.
I implemented a fix, now non-plain objects will be transformed into strings like so:
I will release it until the end of this week.
The fix has been released.