Skip to content
Advertisement

Error: Failed to execute ‘insertBefore’ on ‘Node’

I tried to insert <div> containers around the {{#each}} but it didn’t work as well. Its also odd because it works for 2 normal posts list pages, but not for the 3rd one which sorts them by distance.

Updates: I noticed that after i change the template JS from template.name.onRendered to onCreated, the sorting page works. However it works only if you go from a previous post list page and not from the profile page.

The only common ground of the error pages is those pages use publishComposite for sorting. Could that be the issue since publishComposite has a child to parent relationship?

The error message

JavaScript

The meteoric_ionic js file referred to line 19

JavaScript

The relevant html

JavaScript

Advertisement

Answer

Try this and let me know:

JavaScript

I’ll make explaination if this work

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement