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.

Error When Fast Navigating "Failed to execute 'insertBefore' on 'Node'"

See original GitHub issue

Environment


  • Operating System: Darwin
  • Node Version: v17.2.0
  • Nuxt Version: 3.0.0-27404660.0f9bcbf
  • Package Manager: yarn@1.22.17
  • Bundler: Vite
  • User Config: meta, css, plugins, build, buildModules, components, vite, intlify, vueuse
  • Runtime Modules: -
  • Build Modules: @nuxtjs/eslint-module@3.0.2, @pinia/nuxt@0.1.8, unplugin-icons/nuxt, @nuxtjs/svg@0.3.0, @intlify/nuxt3@0.1.10, @vueuse/nuxt@7.5.5, ~/modules/tailwind-viewer

Reproduction

Using Minimal Nuxt 3 Template : https://codesandbox.io/s/loving-feather-utoky

Using My Template : https://codesandbox.io/s/github/viandwi24/nuxt3-awesome-starter

I tested on both templates above the results are the same

Describe the bug

when navigating too fast an error appears like the log below and the application stops working.

for example when I navigate to the “about” page then quickly navigate again to the “home” page.

like the gif below: preview preview2

Additional context

No response

Logs

### **CHROME & BRAVE**

VM946 vue.js:7086 Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at insert (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:7086:12)
    at move (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:5432:9)
    at move (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:5405:7)
    at Object.activeBranch.transition.afterLeave (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:2273:15)
    at performRemove (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:5509:20)
    at el._leaveCb (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:2874:9)
    at finishLeave (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:7713:13)
    at resolve2 (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:7743:30)
    at whenTransitionEnds (https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:7825:12)
    at https://utoky.sse.codesandbox.io/_nuxt/node_modules/.vite/vue.js?v=71a85d57:7751:11



### **SAFARI**

[Error] NotFoundError: The object can not be found here.
	insertBefore (vue.js:7086)
	insert (vue.js:7086)
	move (vue.js:5432)
	move (vue.js:5405)
	(anonymous function) (vue.js:2273)
	performRemove (vue.js:5509)
	(anonymous function) (vue.js:2874)
	finishLeave (vue.js:7713)
	(anonymous function) (vue.js:7751)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:19
  • Comments:33 (7 by maintainers)

github_iconTop GitHub Comments

31reactions
genucommented, Aug 5, 2022

try setting a key to the top level NuxtPage in app.vue like so:

<template>
  <NuxtLayout>
    <NuxtPage :key="$route.fullPath"/>
  </NuxtLayout>
</template>
30reactions
zenojuniorcommented, Mar 6, 2022

It happens for me too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute 'insertBefore' on 'Node' - Stack Overflow
Show activity on this post. However in my console I get an error: Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node ......
Read more >
I get this error: Failed to execute 'insertBefore' on 'Node'
I get this error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is. When I try to use...
Read more >
Failed to execute 'insertBefore' on 'Node' error crashes ...
The below error is generated when start editing in gutenberg and it crashes. Error: Failed to execute 'insertBefore' on 'Node': The node before...
Read more >
DOMException: Failed to execute 'insertBefore' on 'Node'
Questions about implementation problems need to include a specific description of the problem (including exact errors and stack traces, ...
Read more >
Question Detail - Automation Anywhere aPeople
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 >

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