Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in queued task: Error: Failed to execute 'insertBefore' on 'Node' #377

Open
mervynteo opened this issue Feb 13, 2016 · 4 comments

Comments

@mervynteo
Copy link

I have 2 mainly tabs, a list tab, a sort list tab and a profile tab.
The error used to be for all 3 tabs until i switched to a onCreated from onRendered.
Currently, if I go from profile to sort tab, error remains. But from list tab to sort it works fine, but only after the location is loaded.

Wrapping the {{# each}} or {{# if}} does not work unfortunately in my case.

SO Link there to the issue.
http://stackoverflow.com/questions/35017820/error-failed-to-execute-insertbefore-on-node

@benstr
Copy link
Member

benstr commented Apr 6, 2016

Try wrapping your view in a subReady if statement.

{{#if Template.subscriptionsReady}}
 {{#ionView}}
    {{#ionContent}}
        {{#ionList}}
            <div>
              {{#each shops}}
                    {{> shopItem}}
              {{/each}}
            </div>
        {{/ionList}}
    {{/ionContent}}
  {{/ionView}}
{{/if}}

@iuraya
Copy link

iuraya commented Apr 8, 2016

Hi,

I'm also experiencing this issue. I've tried wrapping my code with the subscriptionReady but doesn't work. In my case the problem occurs inside the 'ionSideMenuContent' block but not inside the 'ionSideMenus'
Any workaround?

Thanks

@mervynteo
Copy link
Author

@iuraya unfortunately, I suspect that the error is because the package is now deprecated, Many of its Blaze dependent components now affect the way items are being inserted into lists. I have ripped out the package entirely.

@terenceng2010
Copy link

terenceng2010 commented Apr 23, 2016

In my case, remove ionNavView from the master layout solve the issue. I don't need the transition animation.

i think the bug is in the source code of it: (Line 31~49)
https://github.com/meteoric/meteor-ionic/blob/master/components/ionNavView/ionNavView.js

I also find that @JoeyAndres do some change on his fork, maybe you want would like to try it.
https://github.com/meteoric124/meteoric/blob/69a85179c852686ff977802a1b3c361b7c916ef3/components/ionNavView/ionNavView.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants