Error When Fast Navigating "Failed to execute 'insertBefore' on 'Node'"
See original GitHub issueEnvironment
- 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.
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:
- Created 2 years ago
- Reactions:19
- Comments:33 (7 by maintainers)
Top 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 >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
try setting a key to the top level
NuxtPage
inapp.vue
like so:It happens for me too