devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Dev tools not activating

Open rrd108 opened this issue 2 years ago • 13 comments

Version

6.1.3

Browser and OS info

Chrome 99.0.4844.74 / 5.15.28-1-MANJARO

Steps to reproduce

npm run dev a vite project open localhost:3000

What is expected?

The dev tools icon should turn to green and on the chrome dev tools there should be a vue tab

What is actually happening?

The vue dev tools icon stays gray, no vue tab on the chrome dev tools


It seems to me that sometimes it works, but I was not able to figure why and when

rrd108 avatar Mar 21 '22 14:03 rrd108

I've been experiencing the same issue, sometimes closing the Chrome DevTools panel and re-opening it again solves the problem, but not consistently.

scp-nm avatar Mar 21 '22 16:03 scp-nm

I have also had this issue and usually the solution above works, but as of today it seems that devtools just won't connect to several sites I had no issue connecting to within the last week.

pm-zr avatar Mar 21 '22 16:03 pm-zr

I just downgraded to 6.0.13 because it was the most recent version available on crx4chrome.com and local builds failed repeatedly. The extension now connects successfully to the previously affected sites

pm-zr avatar Mar 21 '22 17:03 pm-zr

I have the same issue but in my case, the Vue icon is active but the devtool bar is not activated.

Vue version: 2.6.14. Chrome: 99.0.4844.74 Vue Devtools Extension: 6.1.3

georgyKurian avatar Mar 22 '22 11:03 georgyKurian

I just downgraded to 6.0.13 because it was the most recent version available on crx4chrome.com and local builds failed repeatedly. The extension now connects successfully to the previously affected sites

it worked Vue 3.2.16 Chrome 99.0.4844.51

byronogis avatar Mar 23 '22 01:03 byronogis

After fighting auto updates for a few days, I noticed the new extension was working on a separate chrome profile which led me to believe the extension alone was not the problem. I cleared the application cache ("clear site data" under devtools > application) for localhost and restarted chrome and now the new version (6.1.3) is working at least on sites tested so far where it previously did not work.

pm-zr avatar Mar 24 '22 19:03 pm-zr

I have the same issue. In my case,

Browser: Google Chrome Devtools version: 6.1.3 Vue version: 2.6.12 Nuxt version: 2.15.8 devtools = true and productionTip = false is already configured in nuxt.config.js

and after debugging packages/shell-chrome/src/detector.js, I found the application works well when I change delay value of setTimeout function in detect funtion from 100 to 1000. I think in the case of large application, detect function is executed before $root is added to window.$nuxt.

ID157 avatar Mar 27 '22 15:03 ID157

https://github.com/vuejs/devtools/commit/c888003561868bbd2c67e62c996b495c90aa5b32 Thank you!

ID157 avatar Mar 30 '22 05:03 ID157

I have tried the new version without success. The plugin detects Vue on the page, but the Vue tab does not show up in the devtools.

Vue version: 3.2.19 Devtools version: 6.1.4 Chrome version: Version 100.0.4896.60 (Build officiel) (64 bits) (just updated it, but had the problem before) OS: Windows 10 Pro / 19042.1586

Other coworkers has the same problem on Mac/Chrome. Edge did not work either.

AurelieV avatar Mar 31 '22 09:03 AurelieV

Same in FF Dev (Win10). Vue 3.2.31, Vue Devtool v6.1.4. Reopening FF DevTools doesn't necessarily solve it. Need to visit FF's DevTools Settings and check Vue Extension on/off to remain active for the current Tab, but may break again if another/new tab is opened that has a Vue app.

WebMechanic avatar Apr 27 '22 15:04 WebMechanic

c888003 Thank you!

Where do I add this code?

Sorry for the dumb question, I'm only in my first year of Uni

tenaciouspete avatar Apr 29 '22 10:04 tenaciouspete

@Akryum: Your c888003561868bbd2c67e62c996b495c90aa5b32 commit is a great improvement, thank you! :tada:

However, I think an additional fix is needed.  I'm noticing that while Nuxt v2 is in the process of initialising, the window.__NUXT__ context gets defined before the window.$nuxt helper:

I've found that making this change to runDetect() fixes the issue, since nuxtDetected will now only become true once both window.__NUXT__ and window.$nuxt have been defined: :white_check_mark:

  // Method 1: Check Nuxt.js
- const nuxtDetected = !!(window.__NUXT__ || window.$nuxt)
+ const nuxtDetected = !!(window.__NUXT__ && window.$nuxt)
  • Vue — v2.7.8
  • Nuxt — v2.15.8
  • Chrome — v107.0.5304.110
  • Vue Devtools Extension — v6.4.5

kyanmichael avatar Nov 14 '22 12:11 kyanmichael

and meeeee ,,, but i'm using: Opera 120.0.6099.200 Nuxt 3.9.1

annouoos avatar Jan 14 '24 16:01 annouoos