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 issueEnvironment
- 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:
- Created 2 years ago
- Reactions:2
- Comments:15 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is already there: https://v3.nuxtjs.org/guide/directory-structure/pages#usage. Improvements welcome 🙏
@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