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.js is not detected with vue@3.0.0-rc.4 #1244

Closed
way2ex opened this issue Jul 25, 2020 · 64 comments
Closed

Vue.js is not detected with vue@3.0.0-rc.4 #1244

way2ex opened this issue Jul 25, 2020 · 64 comments

Comments

@way2ex
Copy link

way2ex commented Jul 25, 2020

Be patient.

FYI: @Akryum is working on this. Please wait for the next release.
—— From Evan


Version

6.0.0-beta.1

Browser and OS info

版本 84.0.4147.89/ MacOS10.14.3

Steps to reproduce

  • install vue@3.0.0-rc.4 and run webpack-dev-server
  • download vue-devtools in version of 6.0.0-beta.1

What is expected?

Vue can be detected

What is actually happening?

Vue.js is not detected


I don't know it's a question of vue-devtools or vue-next. Could you point what should i do to use vue-devtools . Is something wrong in my project ?

@Uninen
Copy link

Uninen commented Jul 26, 2020

Vue is also not detected when creating a new Vue 3 project w/ vuex and vue-router using the new vue-cli 4.5.0.

@BellemareMederic
Copy link

Confirm that bugs
devtools version : 6.0.0 beta 1
"core-js": "^3.6.5",
"vue": "^3.0.0-rc.5",
"vue-router": "^4.0.0-beta.4"

have a not detected on the chrome extension and my files are not minify

@ThisIsRuddy
Copy link

Same except 3.0.0-rc.5 :(

@yoyoys
Copy link

yoyoys commented Aug 5, 2020

I've tested with same result with 3.0.0-rc.5, but __VUE_DEVTOOLS_GLOBAL_HOOK__.store is detected.

...
    "vue": "3.0.0-rc.5",
    "vue-router": "4.0.0-beta.5",
    "vuex": "4.0.0-beta.4"
    "@vue/compiler-sfc": "^3.0.0-rc.5",
    "vue-cli-plugin-vue-next": "~0.1.3"
    "core-js": "^3.6.5",
...

@d-pollard
Copy link

Hoping this gets resolved; would love to start playing with the new features

@Rekodr
Copy link

Rekodr commented Aug 8, 2020

same issue with 3.0.0-rc.1, ..., 3.0.0-rc.5 on both Chrome and FireFox. The standalone does not work either. Hope this to be fix soon.

@Yakoot
Copy link

Yakoot commented Aug 17, 2020

same issue

@bzd2000
Copy link

bzd2000 commented Aug 17, 2020

indeed, it is really hard to test vue3 without the devtools working.

I try to debug it, but my knowledge of chrome devtools is not good enough

@bzd2000
Copy link

bzd2000 commented Aug 17, 2020

I cannot manage to build it locally, something weird in the package.json I don't understand

@sodatea
Copy link
Member

sodatea commented Aug 18, 2020

I think it's fixed in Vue CLI 4.5.4 with this PR vuejs/vue-cli#5788

If you are using the webpack template, please update the config accordingly.

@marcus-herrmann
Copy link

I think it's fixed in Vue CLI 4.5.4 with this PR vuejs/vue-cli#5788

Vue CLI 4.5.4 does not make any difference in my case:

"vue": "^3.0.0-rc.5",
"@vue/cli-service": "~4.5.4",

No dev tools pane in both Firefox (79) and Chrome (83)

@9mm
Copy link

9mm commented Aug 20, 2020

I am trying to learn vue and i used vue-cli to make a new vue-3 project, and using the router option with history state enabled. I am using yarn serve for the server. It says vue.js not found in the vue chrome extension. Is this related? Im at a loss how to fix it. Thanks

@Zenemig
Copy link

Zenemig commented Aug 20, 2020

Vue Devtools Version

6.0.0-beta.1

Vue CLI Version

4.5.4

Vue Version

3.0.0-rc.5

Browser and OS info

Google Chrome Version 86.0.4239.0 (Official Build) canary (x86_64)
MacOS Catalina 10.15.2

Steps to reproduce

Create a Vue project using vue@3.0.0-rc.5 and run npm run serve
Download Vue Devtools version of 6.0.0-beta.1

What is expected?

Vue is detected by the extension

What is actually happening?

Vue is not detected

Just started a new project and when I got to a point where I needed Vue Devtools, turns out it's not working. Is there a fix on the works? I didn't see this referenced on any PRs.

@yyx990803
Copy link
Member

FYI: @Akryum is working on this. Please wait for the next release.

@stefaanv
Copy link

Same problem here with vue-cli 4.5.4 and typescript.

    "vue": "^3.0.0-0",
    "vue-class-component": "^8.0.0-0",
    "vue-router": "^4.0.0-0",
    "vuex": "^4.0.0-0"

@euaaaio
Copy link
Contributor

euaaaio commented Sep 1, 2020

Just build next brunch via yarn && yarn build command then manually add packages/shell-chrome folder to Chrome → Extensions → Developer mode → Load unpacked.

@Uninen
Copy link

Uninen commented Sep 1, 2020

The manual build works for me but I haven't seen any version yet that would actually work in any meaningful way that would show any components or any other details from my app. The current build only shows an empty app with no components or data. I've tested this with four different Vue 3 projects, the same results with all of them.

@euaaaio
Copy link
Contributor

euaaaio commented Sep 1, 2020

The manual build works for me but I haven't seen any version yet that would actually work in any meaningful way that would show any components or any other details from my app. The current build only shows an empty app with no components or data. I've tested this with four different Vue 3 projects, the same results with all of them.

Build from next already works.
image

@Uninen
Copy link

Uninen commented Sep 1, 2020

Re-tested just now. Interestingly the build from very latest commit doesn't show the Vue tab at all even though the extension loads ok and shows active on the projects. Tested with three different projects.

A build from a couple of commits back loads but for me doesn't show anything but a blank app and doesn't do anything. Haven't seen any functionality in any of my builds from the next branch ever in any of my Vue 3 projects. Using Chrome (85.0.4183.83) on macOS and Vue 3 RC9 w/ vue-router and TypeScript, with vue-cli and one test project with Vite.

All projects show up like this for me (I also have dark mode on but the plugin always loads bright version and haven't found a place for setting it from the new plugin as none of the tabs work properly):

Screenshot 2020-09-01 at 14 34 35

@Uninen
Copy link

Uninen commented Sep 1, 2020

I also get this error (taken from Chrome extensions error tab) with first page load but it goes away with refresh. It still doesn't seem to affect in te behaviour at all, nothing shows up except a blank App.

Screenshot 2020-09-01 at 14 45 24

@Uninen
Copy link

Uninen commented Sep 1, 2020

Sorry for the comment spam but I got the plugin somewhat working after completely deleting and reinstalling Chrome. Found out that the problem was in my code which in all projects uses Suspense and async components. After removing these just for debugging purposes I now see a list of components:

Screenshot 2020-09-01 at 15 11 01

So the Suspense-component and async setup is not yet supported (or doesn't work properly) but a build from the next-branch kind-of works already indeed.

@Mehdi-Hp
Copy link

Mehdi-Hp commented Sep 2, 2020

Running window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app.constructor makes Vue tab to appear, but empty.

image

@Mehdi-Hp
Copy link

Mehdi-Hp commented Sep 6, 2020

Found a caveat. Make sure vue-cli-plugin-vue-next is not installed. Fixed my problem.

@ellisonpatterson
Copy link

Found a caveat. Make sure vue-cli-plugin-vue-next is not installed. Fixed my problem.

Fixes all issues, thank you!

@yoyoys
Copy link

yoyoys commented Sep 8, 2020

@Mehdi-Hp

Found a caveat. Make sure vue-cli-plugin-vue-next is not installed. Fixed my problem.

This breaks vuex and vue-router.

got message like that

Failed to compile with 7 errors                                        

This dependency was not found:

* vue in ./node_modules/vue-router/dist/vue-router.esm.js, ./node_modules/vuex/dist/vuex.esm-browser.js and 5 others

To install it, you can run: npm install --save vue
No issues found.

@rajinder-yadav
Copy link

Not working on Firefox also

@edikdeisling
Copy link
Contributor

This code works for me (Chrome + Vue 3.0.0-rc.10)

// main.ts
import App from '@/App.vue';
import { devtools } from '@/devtools';
import router from '@/router';

createApp(App).use(devtools).use(router).mount('#app');

// devtools.ts
import { App, Plugin } from 'vue';

const devtools: Plugin = {
	install(app: App) {
		// @ts-ignore
		if (process.env.NODE_ENV === 'development' && window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
			// @ts-ignore
			window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app;
		}
	},
};

export { devtools };

sodatea added a commit to vuejs/vue-cli-plugin-vue-next that referenced this issue Sep 11, 2020
@ThisIsRuddy
Copy link

Not sure what has changed but it seems to be working now as I have just created a fresh project via vue-cli and re-tested

Chrome Extension: Vue DevTools 6.0.0 beta 2

 "dependencies": {
    "core-js": "^3.6.5",
    "vue": "^3.0.0-0",
    "vue-router": "4.0.0-beta.9"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "^3.0.0-0",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^7.0.0-0",
    "sass": "^1.26.10",
    "sass-loader": "^10.0.2"
  }

screenshot

@9mm
Copy link

9mm commented Sep 12, 2020

@ThisIsRuddy did you install it from github using the developer version of the extension instead of doing it from the chrome store? Maybe that is the problem

@yangtianxia
Copy link

Be patient.

FYI: @Akryum is working on this. Please wait for the next release.
—— From Evan

Version

6.0.0-beta.1

Browser and OS info

版本 84.0.4147.89/ MacOS10.14.3

Steps to reproduce

  • install vue@3.0.0-rc.4 and run webpack-dev-server
  • download vue-devtools in version of 6.0.0-beta.1

What is expected?

Vue can be detected

What is actually happening?

Vue.js is not detected

I don't know it's a question of vue-devtools or vue-next. Could you point what should i do to use vue-devtools . Is something wrong in my project ?

可用的方法

import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)

// 分环境处理
if (process.env.NODE_ENV === 'development') {
  if ('__VUE_DEVTOOLS_GLOBAL_HOOK__' in window) {
  // 这里__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue赋值一个createApp实例
    window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app
  }
}

app.mount('#app')

解决方法来自vue-devtools README.md,之后对比了Vue2 window __VUE_DEVTOOLS_GLOBAL_HOOK__.Vue

后面翻评论看到 @xSorc 已经解决了

@VottusCode
Copy link

VottusCode commented Dec 18, 2020

My current dependencies are the following (Currently, Vue 3.0.3 is installed):

{
  "dependencies": {
    "autoprefixer": "^9",
    "axios": "^0.21.0",
    "bulma": "^0.9.1",
    "core-js": "^3.6.5",
    "epic-spinners": "^1.1.0",
    "postcss": "^7",
    "tailwindcss": "npm:@tailwindcss/postcss7-compat",
    "topbar": "^0.1.4",
    "vue": "^3.0.0",
    "vue-router": "^4.0.0-0",
    "vue3-click-away": "^1.1.0",
    "vuex": "^4.0.0-0"
  },
  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "^2.33.0",
    "@typescript-eslint/parser": "^2.33.0",
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-plugin-router": "~4.5.0",
    "@vue/cli-plugin-typescript": "~4.5.0",
    "@vue/cli-plugin-vuex": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "^3.0.0",
    "@vue/eslint-config-prettier": "^6.0.0",
    "@vue/eslint-config-typescript": "^5.0.2",
    "eslint": "^6.7.2",
    "eslint-plugin-prettier": "^3.1.3",
    "eslint-plugin-vue": "^7.0.0-0",
    "lint-staged": "^9.5.0",
    "node-sass": "^4.12.0",
    "prettier": "^1.19.1",
    "sass-loader": "^8.0.2",
    "typescript": "~3.9.3"
  }
}

The project is working fine, without any issues. It has been migrated from Vue 2. With Vue 2, the devtools have worked, but after migrating to Vue 3 they stopped working.

I currently have the Vue.js devtools 6.0.0-beta2 and while they do work with new Vue 3 projects (created via Vue CLI), it does not work with ours. I have even went as far as removing anything except app.mount("#app") and the App.vue component only contained of one div, but to no avail.

Edit: bumped to 3.0.4, still the same issue

@tomhave97
Copy link

Ah-ha! Here's the beta channel for anyone interested: https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg

Thank you @9mm and @ThisIsRuddy, now works for me after installing that beta version of Vue devtools. My Vue3 app is being detected.

You need to remove it completely. Also if you added it before removing the base one, romove both again and install the beta version. After that it should work. 😄

@VottusCode
Copy link

VottusCode commented Dec 28, 2020

To fix the issue, remove your yarn.lock (or package-lock.json in case of NPM) and install your dependencies again using the appropriate command.

Worked for me, some deps were bumped and I suppose it was fixed in one of them

@FavourOyewumi7
Copy link

FavourOyewumi7 commented Jan 5, 2021

What works for me is when i installed both the beta and the former version , the only bad thing is the vue panel doesn't actually show

@EthanZeigler
Copy link

What works for me is when i installed both the beta and the former version , the only bad thing is the vue panel doesn't actually show

I had the same issue. You have to restart the browser when installing the beta devtools.

@FavourOyewumi7
Copy link

oh thanks later got this

@Akryum Akryum closed this as completed Jan 29, 2021
@yashrathi-git
Copy link

Switching to Vue.js devtools beta channel worked for me.
Remove the vue.js devtools extension and install the beta version.
Install it from here: https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg/related

@jcrawford
Copy link

Switching to Vue.js devtools beta channel worked for me.
Remove the vue.js devtools extension and install the beta version.
Install it from here: https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg/related

Thanks that worked for me as well :)

@nicooprat
Copy link

I couldn't make devtools work with Vue 3 + Vite 2, for now I got this workaround in main.js (based on previous comment):

const app = createApp(App)
if(import.meta.env.DEV && window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
  window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app
}
app.mount('#app')

I might have missed something obvious but devtools were working fine with other Vue 3 +vue-cli, so I guess it's some kind of Vite incompatibility for now.

@LinusBorg
Copy link
Member

Devtools work fine for my Vite projects without any workarounds:

Bildschirmfoto 2021-03-21 um 12 09 45

@nicholasscottfish
Copy link

For anyone still having this issue on Vue 3 projects:

When switching back to Vue 2 projects:

  • Disable the beta version via chrome://extensions/
  • Enable the stable version of the extension

Note: You may need to restart Chrome for the changes to take effect

@germsb
Copy link

germsb commented Apr 4, 2021

Devtools work fine for my Vite projects without any workarounds:

Bildschirmfoto 2021-03-21 um 12 09 45

The vue tab appears fine but it's the only thing that works. Click on image to see video.

Imgur

@lloydjatkinson
Copy link

This also does not work for me. I have both versions of the Vue dev tools installed but no tab in F12.
image

@germsb
Copy link

germsb commented Apr 13, 2021

Devtools work fine for my Vite projects without any workarounds:
Bildschirmfoto 2021-03-21 um 12 09 45

The vue tab appears fine but it's the only thing that works. Click on image to see video.

Imgur

Finally, I solved the problem by uninstalling chrome and deleting all the folders and files it leaves behind. After reinstallation, the problem came back when I logged in to synchronize data from my Google account. I had to turn off extension sync and some more stuff before everything was back to normal

@k0d3d
Copy link

k0d3d commented Aug 23, 2021

If using Vue 3, you need the new version of the extension that is currently still in beta https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg?hl=en

@nolimitdev
Copy link

New extension https://chrome.google.com/webstore/detail/vuejs-devtools/ljjemllljcmogpfapbkkighbhhppjdbg?hl=en seems to support also Vue 2 although website https://v3.vuejs.org/guide/migration/introduction.html#devtools-extension says that only Vue 3 is supported. The same with Router support (Vuex support not tested).

The new version is currently in beta and only supports Vue 3 (for now). Vuex and Router integration is also work in progress.

@WhyNotHugo
Copy link

The latest version of the addon still won't pick up Vue3 project. The latest version is from January 2021, so it seems it's still not been pushed to AMO?

@Akryum
Copy link
Member

Akryum commented Jan 20, 2022

Unfortunately Mozilla doesn't allow uploading beta versions of addons on AMO.

@WhyNotHugo
Copy link

Oh, vue3 support is not yet stable?

@LinusBorg
Copy link
Member

It basically is, we just haven't done the switch yet, which we will be doing alongside the rest shortly:

https://blog.vuejs.org/posts/vue-3-as-the-new-default.html

@WhyNotHugo
Copy link

Ah, thanks! I'd missed that there was a coordinated switch date. Looking forward to it.

@hussein12334
Copy link

vue.js devtools just stopped working, no clue why just doesnt want to detect anything

@tomexsansdev
Copy link

I Know this is Closed. In Case someone needs this to save you a lot of hair pulling.
When Using VueJS3 + Vite

Using the Version 6.1.4 of the FireFox DevTools Extension

Package.json

...
 "vue": "^3.2.31",
 "vue-chartjs": "^4.0.6",
 "vue-router": "^4.0.12",
  "@vitejs/plugin-vue": "^2.2.2",
  "@vitejs/plugin-vue-jsx": "^1.3.7",
  "@vue/eslint-config-prettier": "^7.0.0",
  "@vue/test-utils": "^2.0.0-rc.18"
...

You need to add it to the it to the Vite config

Vite.config.js

export default defineConfig({
  __VUE_PROD_DEVTOOLS__ : process.env.NODE_ENV === 'development'
})

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