question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Environment

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:closed
  • Created 2 years ago
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
upepo-mwindajicommented, Jul 30, 2022

If you are experiencing this issue on a cloud VM dev environment (e.g. Codespace), try updating your vite config as per #6096

2reactions
mlpierce22commented, Jun 2, 2022

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:

  build: {
    transpile: process.env.NODE_ENV === "development" ? [] : ["element-plus"],
  },

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found