question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

See original GitHub issue

Environment


  • Operating System: Windows_NT
  • Node Version: v16.13.0
  • Nuxt Version: 3.0.0-27264620.a62351a
  • Package Manager: npm@8.1.2
  • Bundler: Vite
  • User Config: vite, css, build
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

if use navigation browser, pages stop load… and return this error.

Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this node.

Reproduction

nuxt page have style

.page-enter-active, .page-leave-active { transition: opacity .5s; } .page-enter, .page-leave-active { opacity: 0; }

nuxt link page1, page2

forward and back 2-3 times

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
danielroecommented, May 30, 2022

It is already there: https://v3.nuxtjs.org/guide/directory-structure/pages#usage. Improvements welcome 🙏

CleanShot 2022-05-30 at 11 13 43@2x
7reactions
syifengcommented, Dec 15, 2021

@syifeng Would you provide a reproduction in that case?

@danielroe I just found the reason what caused the Error.

I commented the code element in the template.

a wired Error. hard to found. /pages/index.vue

--- bad
<template>
 <!-- <div class="bg-emerald-300 leading-9">
    <span>{{statusNow}}</span>
  </div> -->
 <div>
main body
</div>
</template>

--- good
<template>
 <div>
main body
</div>
</template>
``
Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught NotFoundError: Failed to execute 'insertBefore' on ...
Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child...
Read more >
Failed to execute 'insertBefore' on 'Node' - Vue Forum
Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this...
Read more >
Child to insert before is not a child of this node | OutSystems
Since the update to Platform Server 11.12.0 (Build 29969), we increasingly receive the error message "Node.insertBefore: Child to insert before is not a...
Read more >
Failed to execute 'insertBefore' on 'Node' (Example) - Treehouse
Failed to execute 'insertBefore' on 'Node' ... on 'Node': The node before which the new node is to be inserted is not a...
Read more >
error domexception: failed to execute 'insertbefore' on 'node'
error domexception: failed to execute 'insertbefore' on 'node': the node before which the new node is to be inserted is not a child...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found