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

Vue 3 app.unmount() causes several exceptions to be thrown after 2 seconds - Timed out getting app record for app [object Object] #1480

Closed
deot opened this issue Jun 10, 2021 · 5 comments

Comments

@deot
Copy link

deot commented Jun 10, 2021

Version

6.0.0-beta.14

Browser and OS info

Chrome 91 / Mac 11.2.1

Steps to reproduce

main.ts

import { createApp } from "vue";
import App from "./App.vue";

const vm = createApp(App);
vm.mount("#app");
vm.unmount();

What is expected?

no error.

What is actually happening?

Uncaught (in promise) Error: Timed out getting app record for app [object Object]
    at backend.js:811
Screenshot

2021-06-10 at 09 43 38
09 48 13

@redfox05
Copy link

redfox05 commented Jun 15, 2021

I can confirm I also get this error. Did lots of debugging, but can't figure it out. Glad it's not just me, and thus looks less likely to be my code.
The error is from backend.js and goes away if I disable the vue devtools extension, so we know its the devtools plugin, not one generated by the vue application.

Browser: Chrome Version 91.0.4472.101 (Official Build) (x86_64)
System: MacOS Big Sur Version 11.4
Vue devtools version: 6.0.0 beta 14
Vue: 3.0.4

@cloud-mouse
Copy link

Is there a solution for this? I also encountered the same problem.

@redfox05
Copy link

redfox05 commented Jun 16, 2021

I tried several things, including wondering if it was listeners that had not been removed before unmounting etc, but nothing changes. For now I'm just trying to ignore the errors, but theres so many that fly up, it really affects development.

Would be nice if this issue could at least be acknowledged.

@deot Can you add the actual exception error message into the title, so that more people can come across this thread if they are searching for it via search engines? I only found this by manually checking the vue devtools issue page, and some people might not even realise its related to the vue chrome extension.

Suggestion for title:

Vue 3 app.unmount() causes several exceptions to be thrown after 2 seconds - Timed out getting app record for app [object Object]

@Akryum Akryum added the v6 label Jun 16, 2021
@deot deot changed the title When app.unmount() is called, some exceptions will be thrown after 2 seconds Vue 3 app.unmount() causes several exceptions to be thrown after 2 seconds - Timed out getting app record for app [object Object] Jun 17, 2021
@zhch-hong
Copy link

chrome vue-devtools extension, disabled

@Akryum Akryum closed this as completed in 771bdcc Jun 18, 2021
@redfox05
Copy link

Fantasic! That was quick @Akryum thanks!

Question though, looking at the PR, it seems mainly to remove errors on production builds with the try/catches, but doesn't seem to change much for non-production? Unless I missed something? I'll look forward to updating and trying anyway.

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

5 participants