1
ostream
29d

(node:3199) UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'element' -> object with constructor 'Object'
| property 'componentProvider' -> object with constructor 'Object'
--- property 'parent' closes the circle
at stringify (<anonymous>)
at writeChannelMessage (internal/child_process/

BECAUSE SURELY THAT'S A F*** EXPLICIT ERROR MESSAGE, SURE I HAVE TWO HOUR WONDERING WTF IS THE ISSUE WITH THAT STUPID LIB

Comments
  • 5
    The error message is "Type Error: Converting circular structure to JSON", it's a js lang issue at that point. You passed an object with circular references into JSON.stringify, stringify can't handle that.

    Remove the offending property from the object you're trying to serialize, or use the stringify replacer argument (https://developer.mozilla.org/en-US...) to exclude the symbol when it appears. You can then rehydrate the property on the receiver side explicitly (you have the data already, since it's a circular ref issue).
  • 2
    I'm not serializing anything. It's because I used this syntax:

    https://digitalocean.com/community/...

    When I remove the [innerHTML] line, the test passes fine. I'm passing it a normal string. No serialization anywhere.
  • 0
    Try turning the safeties off with the safeHtml pipe or this.domSanitizer.bypassSecurityTrustHtml(injectedContent) and see if it makes a difference.

    It's not recommended, but I have no idea what's coming out of the node channel
  • 0
    I like your username
  • 1
    @SortOfTested all right, I'm going to try that on monday. If it works I owe you icecream
Add Comment