You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you, @danielpeintner, for providing this fix! After also doing some more research, I discovered that the problem might be related to vm2, since the error does not occur if you perform a structuredClone of an ExposedThingInit before passing it to the produce method (which I found pretty odd). Apparently, vm2 wraps unprocessed JavaScript objects somehow, so that they are not compatible with structuredClone anymore. With the old parse-stringify approach, this problem does not seem to be present.
I guess we could revisit using the more recommended structuredClone once again when a replacement for vm2 has been added to the code. For now, maybe we need to make sure that the problem does not appear in other CLI-related contexts as well.
Originally posted by @JKRhb in #1152 (comment)
relates to #1105 and #1035
The text was updated successfully, but these errors were encountered: