Devtools: In dev mode getting "Devtools inspection is not available because it's in production mode or explicitly disabled by the author"
See original GitHub issueEnvironment
Nuxt project info:
- Operating System:
Darwin
- Node Version:
v16.12.0
- Nuxt Version:
3.0.0-27307420.6a25d3e
- Package Manager:
yarn@1.22.4
- Bundler:
Vite
- User Config:
buildModules
,dev
,build
,intlify
,publicRuntimeConfig
- Runtime Modules:
-
- Build Modules:
@intlify/nuxt3@0.1.9
Reproduction
n/a
Describe the bug
Starting nuxt with yarn dev
or yarn dev --devtools
, with or without dev: true
in config, in any case getting from vue devtools
:
Nuxt.js + Vue.js is detected on this page. Devtools inspection is not available because it’s in production mode or explicitly disabled by the author.
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:22 (6 by maintainers)
Top Results From Across the Web
Vue.js is detected on this page. Devtools inspection is not ...
Vue.js is detected on this page. Devtools inspection is not available because it's in production mode or explicitly disabled by the author ·...
Read more >Vue.js is detected on this page. Devtools inspection is not ...
Vue.js is detected on this page. Devtools inspection is not available because it's in production mode or explicitly disabled by the author.
Read more >Force enable Vue.js devtools in production mode.
Devtools inspection is not available because it's in production mode or explicitly disabled by the author. Now it's a PITA to debug if...
Read more >Vue Devtools in production mode or explicitly disabled by the ...
Devtools inspection is not available because it's in production mode or explicitly disabled by the author. Vue dev tool is not showing.
Read more >Disabling Vue Devtools in Production - Laracasts
It's compiling and minifying properly, but the dev tools are still present when viewing site in production server. Any help getting me unstuck...
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
If you are experiencing this issue on a cloud VM dev environment (e.g. Codespace), try updating your vite config as per #6096
Not sure if this will help anybody, but I my issue was the
build.transpile
option. I need this for prod builds, not development, so I just changed it to the following and it seems to work for now:After playing around a little while, I think that this is either an uncaught error or a race condition of some kind because it’s very finicky. I found that I can reproduce it consistently by putting an incorrect css path into the nuxt config (devtools not found, and no errors thrown except file not found at runtime).
Using devtools v6.1.4 Repro: https://stackblitz.com/edit/github-b6sebj?file=nuxt.config.ts&view=editor