meteor-devtools-evolved icon indicating copy to clipboard operation
meteor-devtools-evolved copied to clipboard

Uncaught DOMException when using mongo-decimal and a client collection includes a document with a Decimal object.

Open gfbeqs opened this issue 1 year ago • 1 comments

image

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)```

gfbeqs avatar Jul 21 '22 23:07 gfbeqs

Happening to me as well - have to disable the devtools when working with data that contains Decimal128.

gunnartorfis avatar Sep 22 '22 10:09 gunnartorfis

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.

leonardoventurini avatar Oct 12 '22 12:10 leonardoventurini

I implemented a fix, now non-plain objects will be transformed into strings like so:

image

I will release it until the end of this week.

leonardoventurini avatar Dec 05 '22 14:12 leonardoventurini

The fix has been released.

leonardoventurini avatar Jan 19 '23 13:01 leonardoventurini