Giter Site home page Giter Site logo

nuxt / devtools Goto Github PK

View Code? Open in Web Editor NEW
2.7K 17.0 148.0 11.4 MB

Unleash Nuxt Developer Experience

Home Page: https://devtools.nuxt.com

License: MIT License

Vue 60.24% TypeScript 37.44% JavaScript 0.24% Shell 0.09% CSS 0.70% HTML 1.29%
dx nuxt nuxt-module nuxt-devtools

devtools's Introduction

Nuxt DevTools

Nuxt DevTools

npm version npm downloads License Nuxt Volta

Unleash Nuxt Developer Experience.
Nuxt DevTools is a set of visual tools that help you to know your app better.

πŸ‘‹ Introduction | πŸ’‘ Ideas & Suggestions | πŸ—ΊοΈ Project Roadmap | πŸ“š Documentation


Installation

Nuxt DevTools requires Nuxt v3.9.0 or higher.

Nuxt DevTools is enabled by default in Nuxt v3.8.0. You can press Shift + Alt / ⇧ Shift + βŒ₯ Option + D in your app to open it up.

If you want to explicitly enable or disable Nuxt DevTools, you can update your nuxt.config with:

export default defineNuxtConfig({
  devtools: {
    enabled: true // or false to disable
  }
})

Edge Release Channel

Similar to Nuxt's Nightly Channel, DevTools also offers an edge release channel, that automatically releases for every commit to main branch.

You can opt-in to the edge release channel by running:

{
  "devDependencies": {
--    "@nuxt/devtools": "^0.1.0"
++    "@nuxt/devtools": "npm:@nuxt/devtools-edge@latest"
  }
}

Remove lockfile (package-lock.json, yarn.lock, or pnpm-lock.yaml) and reinstall dependencies.

Module Options

To configure Nuxt DevTools, you can pass the devtools options.

// nuxt.config.ts
export default defineNuxtConfig({
  devtools: {
    // Enable devtools (default: true)
    enabled: true,
    // VS Code Server options
    vscode: {},
    // ...other options
  }
})

For all options available, please refer to TSDocs in your IDE, or the type definition file.

Features

Read the Announcement Blog Post 🎊 for why we built Nuxt DevTools and what it can do!

Module Authors

Please refer to the Module Authors Guide.

Contribution Guide

Please refer to the Contribution Guide.

Anonymous Usage Analytics

Nuxt DevTools collects anonymous telemetry data about general usage. This helps us to accurately gauge feature usage and customization across all our users. This data will let us better understand how each features in Nuxt DevTools are used, measuring improvements made (DX and performances) and their relevance. It would also help us to prioritize our efforts and focus on the features that matter the most to our users.

Nuxt DevTools' telemetry data is piped through Nuxt Telemetry, meaning that Nuxt DevTools will respect your local and global Nuxt Telemetry settings. You can also opt-out Nuxt DevTools' telemetry in the Nuxt DevTools settings.

The data we collect is completely anonymous, not traceable to the source (using hash+seed), and only meaningful in aggregate form. No data we collect is personally identifiable or trackable.

Events

On top of the default Nuxt Telemetry events, Nuxt DevTools also collects the following events:

  • Versions of Nuxt DevTools
  • Navigations between tabs/feature
    • This helps us to understand which features are used the most to prioritize our efforts.
  • Browser and OS names and versions
    • This helps us improve compatibility across different browsers and operating systems.
  • Click event on some action buttons

License

MIT

devtools's People

Contributors

antfu avatar arashsheyda avatar atinux avatar benjamincanac avatar clemcode avatar danielroe avatar edimitchel avatar flosciante avatar flowko avatar galactichypernova avatar harlan-zw avatar huang-julien avatar jannchie avatar lmmmmmm-bb avatar lustremedia avatar mannil avatar manutopik avatar maximepvrt avatar mubaidr avatar nmggithub avatar noook avatar pebutler3 avatar pi0 avatar qiuqfang avatar renovate[bot] avatar shingangan avatar thecuvii avatar webfansplz avatar zackha avatar zuixinwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devtools's Issues

npx nuxi devtools enable corrupts old nuxt projects!

I executed npx nuxi devtools enable and it installed some kind of global package that stops nuxt 2 projects from working!

I tried uninstalling the global @nuxt/devtools package and it still gives me errors (different one tho):

It gives me this error on my other (old) project:

 WARN  Module C:/Program Files/nodejs/node_modules/@nuxt/devtools/dist/module.mjs not found. Please ensure C:/Program Files/nodejs/node_modules/@nuxt/devtools/dist/module.mjs is in dependencies and installed.

 FATAL  Cannot find module 'C:/Program Files/nodejs/node_modules/@nuxt/devtools/dist/module.mjs'              22:28:55
Require stack:
- D:\Development\Repositories\cimaba\node_modules\@nuxt\core\dist\core.js

  Require stack:
  - node_modules\@nuxt\core\dist\core.js
  at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
  at Function.resolve (node:internal/modules/cjs/helpers:109:19)
  at _resolve (node_modules\jiti\dist\jiti.js:1:192796)
  at Resolver.jiti [as _require] (node_modules\jiti\dist\jiti.js:1:195025)
  at Resolver.requireModule (node_modules\@nuxt\core\dist\core.js:381:29)
  at ModuleContainer.addModule (node_modules\@nuxt\core\dist\core.js:182:38)
  at node_modules\@nuxt\utils\dist\utils.js:639:43
  at async ModuleContainer.ready (node_modules\@nuxt\core\dist\core.js:55:5)
  at async Nuxt._init (node_modules\@nuxt\core\dist\core.js:478:5)
  
  
βœ– Nuxt Fatal Error
Error: Cannot find module 'C:/Program Files/nodejs/node_modules/@nuxt/devtools/dist/module.mjs'
 Require stack:
- D:\Development\Repositories\cimaba\node_modules@nuxt\core\dist\core.js

I tried deleting my node_modules and reinstalled everything, and it still doesn't work.
Also, there is no changes in my git, and it was working before installing the @nuxt/devtools

secure websocket

My nuxt app is served locally with ssl on a .test domain for sharing cookies with other projects. When I enabled devtools and clicked the icon in the bottom of my page i got an error about the websocket connection needing to be secure.

i was able to change ws to wss in my global module here, and then it worked perfectly

const ws = new WebSocket(`ws://${location.host}/__nuxt_devtools__/entry`)

can there be an option to detect/or configure this in the future?

Not possible to disable

Hi guys,

so i just tested these devtools (with Node 18), but now I cannot disable it anymore.
Even though it says

Nuxt Devtools is not enabled for this project.

I always get

βœ” Nuxt Devtools is enabled v0.1.2 (experimental)

Also if i switch to another project which runs on Node 16, I always get Node 18 errors as this was the version i initially installed the devtools.

The request url "/Users/…/.nvm/versions/node/v18.10.0/lib/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.mjs" is outside of Vite serving allow list.

Therefor I cannot use any of my other nuxt3 projects anymore.

.nuxtrc is not existent / empty. Is it mandatory?

How to fix this?

API Routes Tab

Provide a tab for displaying API routes from Nitro, and a playground to send request

Error while using with html-validator module

Hello guys!! What a wonderful work this devtools!!
I just realized that an error is thrown from module html-validator everytime I use nuxt devtools.

It seems there is an issue regarding a validation rule when devtools tries to add data-v-inspector. I need to use the rule 'no-dup-class': 'off' in html-validator config. Everytime I set this to off, the error below happens. Removing this rule the error disappear.

HTML validation errors found for /                                                                                                                                                                                                                         19:14:59
error: failed to tokenize "=\"app.vue:...", expected attribute, ">" or "/>" (parser-error) at inline:114:11:
  112 |   <body>
  113 |     <div id="__nuxt">
> 114 |       <div="app.vue:2:3">
      |           ^
  115 |         <!--[-->

My HTML-Validator config is like this:

['@nuxtjs/html-validator', {
  usePrettier: true,
  logLevel: 'warning',
  options: {
    rules: {
      'no-dup-class': 'off' //I NEED THIS OFF :)
    }
  }
}],

Thanks in advance for any help on this.
Cheers

I was excited to use Nuxt Devtools but then this happen this error shows up

Environment



Reproduction

  • I run npx nuxi@latest devtools enable on my existing project that was upgraded using npx nuxi upgrade
  • then I run yarn dev and then the error came out.

I also did yarn upgrade to make sure all my dependencies is the latest.

Rerun the yarn dev. yarn dev is working but the nuxt dev tools not working.

Describe the bug

So I cannot explain well what really happened but I believe this error will show what happens;

√ Nuxt Devtools is enabled v0.1.2 (experimental)                                                                                                                        20:24:30
i nuxt-windicss v2.6.0 running with config: ./windi.config.ts.                                                                                            nuxt-windicss 20:24:31

 ERROR  Failed to load url /@fs/D:/tools/nvm/v18.14.0/node_modules/@nuxt/devtools/node_modules/vite-plugin-vue-inspector/src/load.js (resolved id: D:/tools/nvm/v18.14.0/node_modules/@nuxt/devtools/node_modules/vite-plugin-vue-inspector/src/load.js?v=c6393dd2). Does the file exist?


 ERROR  Failed to load url /@fs/D:/tools/nvm/v18.14.0/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.mjs?v=c6393dd2 (resolved id: D:/tools/nvm/v18.14.0/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.mjs?v=c6393dd2). Does the file exist?

Here is an image view:
image

Additional context

No response

Logs

No response

[email protected] can'not start nuxt

Cannot start nuxt: performance is not defined

at node_modules/.pnpm/registry.npmmirror.com+@nuxt[email protected][email protected]/node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:5196:16
at callEachWith (node_modules/.pnpm/[email protected]/node_modules/hookable/dist/index.mjs:46:5)
at Hookable.callHookWith (node_modules/.pnpm/[email protected]/node_modules/hookable/dist/index.mjs:156:7)
at Hookable.callHook (node_modules/.pnpm/[email protected]/node_modules/hookable/dist/index.mjs:148:17)
at enableModule (node_modules/.pnpm/registry.npmmirror.com+@nuxt[email protected][email protected]/node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:8415:14)
at async normalizedModule (node_modules/.pnpm/registry.npmmirror.com+@nuxt[email protected]/node_modules/@nuxt/kit/dist/index.mjs:167:5)
at async installModule (node_modules/.pnpm/registry.npmmirror.com+@nuxt[email protected]/node_modules/@nuxt/kit/dist/index.mjs:435:15)
at async initNuxt (node_modules/.pnpm/[email protected]_nnbwegkqhupcpxestea3eulahm/node_modules/nuxt/dist/index.mjs:2162:7)
at async load (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/dev.mjs:6798:9)
at async Object.invoke (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/dev.mjs:6859:5)
at async _main (node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/cli.mjs:51:20)

Does not disable

Hi guys,

so i just tested these devtools, but now I cannot disable it anymore.
Even though it says

Nuxt Devtools is not enabled for this project.

I always get

βœ” Nuxt Devtools is enabled v0.1.2 (experimental)

Also if i switch to another project which runs on Node 16, I always get Node 18 errors as this was the version i initially installed the devtools.

The request url "/Users/…/.nvm/versions/node/v18.10.0/lib/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.mjs" is outside of Vite serving allow list.

Therefor I cannot use any of my other nuxt3 projects anymore.

How to fix this?

typeerror, cannot make it work

I'm using nuxt in development in a docker compose setup, reverse proxied by a web server with ssl termination and in a docker container.

I get an error after connecting to ws and that's it.

Screen Shot 2023-02-18 at 22 18 24

Shiki loading issues

Seems CDN setting is not working: (assets are published in edge)

image

We can try shiki-es

facing error after enabling devtools

after running
npx nuxi devtools enable

I'm facing the following error:
Error while requiring module C:/Program Files/nodejs/node_modules/@nuxt/devtools: Error: EISDIR: illegal operation on a directory
on
yarn install / yarn dev ..

Cannot read properties of undefined (reading 'preference')

Testing floating on an external application, this error shows:

image

at http://localhost:3000/__nuxt_devtools__/client/_nuxt/@fs/home/pooya/Code/devtools-poc/node_modules/.pnpm/@[email protected]/node_modules/@nuxtjs/color-mode/dist/runtime/plugin.client.mjs:7:24
at useState (http://localhost:3000/__nuxt_devtools__/client/_nuxt/@fs/home/pooya/Code/devtools-poc/node_modules/.pnpm/[email protected]/node_modules/nuxt/dist/app/composables/state.mjs:19:26)
at http://localhost:3000/__nuxt_devtools__/client/_nuxt/@fs/home/pooya/Code/devtools-poc/node_modules/.pnpm/@[email protected]/node_modules/@nuxtjs/color-mode/dist/runtime/plugin.client.mjs:6:21
at fn (http://localhost:3000/__nuxt_devtools__/client/_nuxt/@fs/home/pooya/Code/devtools-poc/node_modules/.pnpm/[email protected]/node_modules/nuxt/dist/app/nuxt.mjs:116:27)
at callWithNuxt (http://localhost:3000/__nuxt_devtools__/client/_nuxt/@fs/home/pooya/Code/devtools-poc/node_modules/.pnpm/[email protected]/node_modules/nuxt/dist/app/nuxt.mjs:121:12)
at applyPlugin (http://localhost:3000/__nuxt_devtools__/client/_nuxt/@fs/home/pooya/Code/devtools-poc/node_modules/.pnpm/[email protected]/node_modules/nuxt/dist/app/nuxt.mjs:67:29)
at applyPlugins (http://localhost:3000/__nuxt_devtools__/client/_nuxt/@fs/home/pooya/Code/devtools-poc/node_modules/.pnpm/[email protected]/node_modules/nuxt/dist/app/nuxt.mjs:76:11)
at async initApp (http://localhost:3000/__nuxt_devtools__/client/_nuxt/entry.mjs:44:7)

Issue is global helper is not available in SPA mode and causes a fatal error.

bug: nvm switch node version

OS: Mac OS
Package Manager: PNPM
Nuxt Version: 3.2.2
Nuxi Verison: 3.2.2

When switching node versions using nvm.

In my case I enabled npx nuxi devtools enable on node 18.7.0 and started the project project. It added the project to the .nuxtrc file which was fine. It was appending the version devtools path appending path to 18.7.0 global node folder. I switch node versions on a different project to 18.9.0 and ran npx nuxi devtools enable on my second project. I then ran npx nuxi dev it then started up and I got a bunch of errors to dependancies that where within the devtools global folder.

I looked at the global .nuxtrc file and it never appended my project path and didn't change the devtools resolution path it was still pointing to .../18.7.0/node_modules/@nuxt/devtools. So I deleted the file and re-enabled it and it started working as intended.

I think this is a edge case but I just want to let you know! If you need any information please let me know. I can't really re-produce on stackblitz since it has to be locally with nvm.

Thanks,
CP

Cannot start service: Host version. Server keeps reloading

Environment

  • Operating System: Darwin
  • Node Version: v18.14.1
  • Nuxt Version: 3.2.2
  • Nitro Version: 2.2.2
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Git clone [email protected]:alvarosabu/portfolio.git

pnpm install
pnpm build:ci
cd apps/portfolio
pnpm dev:https

Describe the bug

This started happening after installing @nuxt/devtools with npx and updating nuxt to v3.2.2

The server keeps reloading forever in the browser

Screen.Recording.2023-02-21.at.08.52.20.mov
[ERROR] Cannot start service: Host version "0.17.10" does not match binary version "0.17.5"

Additional context

No response

Logs

βœ” Nuxt Devtools is enabled v0.1.4 (experimental)                                                                                   08:46:08

 WARN  Sourcemap for "/__uno.css" points to missing source files                                                                   08:46:11

β„Ή Vite client warmed up in 1953ms                                                                                                  08:46:11
✘ [ERROR] Cannot start service: Host version "0.17.10" does not match binary version "0.17.5"

1 error

 ERROR  Error: The service was stopped                                                                                       nitro 08:46:11


undefined

βœ” Nitro built in 127 ms                                                                                                      nitro 08:46:11

Ideas / Todos

  • Resize frame / pop-out as standalone webpage
  • Calling CLI scafolding tools (await @pi0)
  • In app editor (Monaco + Volar), with seperated script / template / style (cc @Atinux)
  • Inspector of the elements in webpage
  • Routes info
  • Pages tree (with one click to navigate, etc)
  • Tests?
  • Modules contributed view, e.g. Tailwind module for design system preview, etc.

(feel free to add your ideas or discuss below!)

Tab Groups

We have quite a few tabs right now, and we plan to have many more, in addition to more and more modules contributing to it. The navbar will grow quite long as we go. We should provide a way to better organize them and make groups expandable.

unhandledRejection: During On Click event on devtool icon.

The below error is coming when i tried to click on the dev tool icon, it didn't crashed visually but got the below error in terminal,

System: Windows 10,

Nuxi 3.2.0
Nuxt 3.2.0 with Nitro 2.2.1

`ERROR [unhandledRejection] Cannot read properties of undefined (reading 'content') 22:29:25

at/node_modules/@nuxt/devtools/dist/chunks/index.mjs:11113:48
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async checkForUpdateOf (/C://node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:8166:21)
at async Promise.all (index 0)
at async checkForUpdates (/C://projects/yts/node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:8184:19)`

Black empty Box

npm run dev
βœ” Nuxt Devtools is enabled v0.1.0 (experimental)

when i open the page on browser,
i see the icon button, click it,
but only black empty box is visable

node v19.5.0
Nuxt 3.2.0 with Nitro 2.2.1

"devDependencies": {
"@nuxt/devtools": "npm:@nuxt/devtools-edge@latest"
}

chrome Version 110.0.5481.77

Cannot start nuxt: performance is not defined

ERROR Cannot start nuxt: performance is not defined
at node_modules/.pnpm/@nuxt[email protected][email protected][email protected]/node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:5196:16

env:

An error about performance occurs when starting a blank Nuxt app in Mac @nuxt/[email protected] + [email protected] + [email protected]

Minimal reproduction:

https://github.com/yue7872/template-nuxt

Reproduction steps:

  • clone repo
  • pnpm install
  • pnpm run start

screenshot:

ζˆͺ屏2023-02-14 15 39 03

Uncaught Error: Module "node:perf_hooks" has been externalized for browser compatibility

Follow-up of #61, most likely due to c7f83f8

When starting current main branch locally, you receive the following error message. Reverting c7f83f8 fixes the issue.

Uncaught Error: Module "node:perf_hooks" has been externalized for browser compatibility. Cannot access "node:perf_hooks.performance" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

Reactivity transform

As reactivity transform is planned to be removed in the future, should we migrate off of it soon or keep it up for a little longer?

Error while requiring module C:/Program Files/nodejs/node_modules/@nuxt/devtools: Error: EISDIR: illegal operation on a directory, read

ERROR Cannot start nuxt: EISDIR: illegal operation on a directory, read 21:11:19

at Object.readSync (node:fs:748:3)
at tryReadSync (node:fs:448:20)
at readFileSync (node:fs:494:19)
at jiti (node_modules\jiti\dist\jiti.js:1:249418)
at requireModule (/D:/Programming/got/node_modules/@nuxt/kit/dist/index.mjs:286:26)
at normalizeModule (/D:/Programming/got/node_modules/@nuxt/kit/dist/index.mjs:454:55)
at installModule (/D:/Programming/got/node_modules/@nuxt/kit/dist/index.mjs:434:47)
at initNuxt (/D:/Programming/got/node_modules/nuxt/dist/index.mjs:2162:13)
at async load (/D:/Programming/got/node_modules/nuxi/dist/chunks/dev.mjs:6798:9)
at async Object.invoke (/D:/Programming/got/node_modules/nuxi/dist/chunks/dev.mjs:6859:5)

Complete log - https://goonlinetools.com/snapshot/code/#wvt19nma0qnsi0vouyfl9

MVP

After the discussion with @Atinux

Components

  • Usage Report
  • Deps graph

Auto Imports

Payload

Module

  • Perf (hook time by transfer?)

Config

Overview

  • Usage of the current page
  • Components / Modules / Payloads / Composables
  • Size of the payload?

Report for Production

  • Analysis (via worker in dev?)

Plugins

  • Filter by clicking the badge
  • Execution time (by transforming the code?)

Virtual File

Console

Inspector

VS Code

  • VS Code local server module
    • Basic done. Need to provide more instructions

[unhandledRejection] Cannot read properties of undefined (reading 'content')

System: macOS Ventura, MacBook Pro M1 Max

Nuxi 3.2.0
Nuxt 3.2.0 with Nitro 2.2.1

Code:

const contentVer = require$$8['cache-version'].content;

Error:

 ERROR  [unhandledRejection] Cannot read properties of undefined (reading 'content')                                                                                                                                                       15:59:24

  at /Users/larry/.nvm/versions/node/v18.8.0/lib/node_modules/@nuxt/devtools/dist/chunks/index.mjs:11113:48
  at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
  at async Promise.all (index 0)
  at async ESMLoader.import (node:internal/modules/esm/loader:528:24)
  at async checkForUpdateOf (/Users/larry/.nvm/versions/node/v18.8.0/lib/node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:8166:21)
  at async Promise.all (index 0)
  at async checkForUpdates (/Users/larry/.nvm/versions/node/v18.8.0/lib/node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:8184:19)

Error running the project

I have enabled devtools for the project running Nuxt 3.2.0 and whenever I run nuxi dev I get the following output:

Nuxt 3.2.0 with Nitro 2.2.1                                                                                                                                                                                                        13:05:40  
                                                                                                                                                                                                                                   13:05:41  
  > Local:    http://localhost:3000/
  > Network:  http://172.21.0.1:3000/
  > Network:  http://192.168.1.122:3000/

i Using default Tailwind CSS file from runtime/tailwind.css                                                                                                                                                       nuxt:tailwindcss 13:05:42  
√ Nuxt Devtools is enabled v0.1.2 (experimental)                                                                                                                                                                                   13:05:42  
i Tailwind Viewer: http://localhost:3000/_tailwind/                                                                                                                                                               nuxt:tailwindcss 13:05:43  

ERROR  Failed to load url /@fs/C:/Users/user/AppData/Roaming/nvm/v16.18.0/node_modules/@nuxt/devtools/node_modules/vite-plugin-vue-inspector/src/load.js (resolved id: C:/Users/user/AppData/Roaming/nvm/v16.18.0/node_modules/@nuxt/devtools/node_modules/vite-plugin-vue-inspector/src/load.js?v=d57f6aaf). Does the file exist?

ERROR  Failed to load url /@fs/C:/Users/user/AppData/Roaming/nvm/v16.18.0/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.mjs?v=d57f6aaf (resolved id: C:/Users/user/AppData/Roaming/nvm/v16.18.0/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.mjs?v=d57f6aaf). Does the file exist?
                                                                                                                                                                                                                                   13:05:40  
i Vite client warmed up in 4084ms 13:05:48  
√ Nitro built in 1235 ms

Any ideas? Maybe related to nvm usage or something similar?

failed to load url `/@fs/C:...../@nuxt/devtools/node_modules/vite-plugin-vue-inspector/src/load.js`

Hi ! πŸ‘‹ on windows i've got an issue to load the devtools. If i remember well, there was an issue similar to this one a few months ago on nuxt 3 RC.

Log:

 Failed to load url /@fs/C:/.../AppData/Roaming/nvm/v16.19.0/node_modules/@nuxt/devtools/node_modules/vite-plugin-vue-inspector/src/load.js (resolved id: C:/Users/chakr/AppData/Roaming/nvm/v16.19.0/node_modules/@nuxt/devtools/node_modules/vite-plugin-vue-inspector/src/load.js?v=d01c9f94). Does the file exist?`

 Failed to load url /@fs/C:/.../AppData/Roaming/nvm/v16.19.0/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.mjs?v=d01c9f94 (resolved id: C:/Users/chakr/AppData/Roaming/nvm/v16.19.0/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client.mjs?v=d01c9f94). Does the file exist?

ERROR [unhandledRejection] Cannot read properties of undefined (reading 'content')

ERROR [unhandledRejection] Cannot read properties of undefined (reading 'content') 10:47:05

at ./node_modules/@nuxt/devtools/dist/chunks/index.mjs:11113:48
at ModuleJob.run (node:internal/modules/esm/module_job:195:25) 10:46:20
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async checkForUpdateOf (./node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:8168:21)
at async Promise.all (index 0)
at async checkForUpdates (./node_modules/@nuxt/devtools/dist/chunks/module-main.mjs:8186:19)

app.error: Error: Page not found: /@vite/client 10:48:49
app.error: Error: Page not found: /@vite/client

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

  • chore(deps): update all non-major dependencies (@antfu/eslint-config, @iconify-json/tabler, @nuxt/devtools, @nuxt/image, @nuxtjs/color-mode, @types/markdown-it, @types/node, @unocss/core, @unocss/eslint-config, @unocss/nuxt, @unocss/preset-attributify, @unocss/preset-icons, @unocss/preset-mini, @unocss/preset-uno, @unocss/reset, @unocss/runtime, @vitest/ui, @vue/devtools-applet, @vue/devtools-core, @vue/devtools-kit, cypress, eslint-plugin-format, floating-vue, json-editor-vue, magicast, pacote, pnpm, quicktype-core, rc9, shiki, taze, theme-vitesse, typescript, unocss, unplugin-vue-markdown, vitest, vue, vue-router, vue-tsc)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/autofix.yml
  • actions/checkout v4
  • actions/setup-node v4
  • autofix-ci/action ea32e3a12414e6d3183163c3424a7d7a8631ad84
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
docs/package.json
  • @iconify-json/ph ^1.1.12
  • @iconify-json/simple-icons ^1.1.99
  • @nuxt/content ^2.12.1
  • @nuxt/devtools 1.0.8
  • @nuxt/fonts ^0.6.1
  • @nuxt/image 1.4.0
  • @nuxt/ui-pro ^1.1.0
  • @nuxthq/studio ^1.0.13
  • @nuxtjs/plausible ^1.0.0
  • @vueuse/core ^10.9.0
  • @vueuse/nuxt ^10.9.0
  • nuxt ^3.11.2
  • nuxt-og-image ^3.0.0-rc.52
package.json
  • @antfu/eslint-config ^2.12.2
  • @antfu/ni ^0.21.12
  • @nuxt/module-builder ^0.5.5
  • @nuxt/schema ^3.11.2
  • @types/markdown-it ^14.0.0
  • @types/node ^20.12.5
  • @types/pacote ^11.1.8
  • @types/which ^3.0.3
  • @types/ws ^8.5.10
  • @unocss/eslint-config ^0.59.0
  • bumpp ^9.4.0
  • conventional-changelog-cli ^4.1.0
  • eslint ^9.0.0
  • eslint-plugin-format ^0.1.0
  • esno ^4.7.0
  • gray-matter ^4.0.3
  • lint-staged ^15.2.2
  • nuxt ^3.11.2
  • pathe ^1.1.2
  • simple-git-hooks ^2.11.1
  • taze ^0.13.3
  • tiged ^2.12.7
  • typescript ^5.4.4
  • ua-parser-js ^1.0.37
  • unocss ^0.59.0
  • vite-hot-client ^0.2.3
  • vue ^3.4.21
  • vue-tsc ^2.0.11
  • pnpm 8.15.6
packages/devtools-kit/package.json
  • @nuxt/kit ^3.11.2
  • @nuxt/schema ^3.11.2
  • birpc ^0.2.17
  • error-stack-parser-es ^0.1.1
  • hookable ^5.5.3
  • unbuild ^2.0.0
  • unimport ^3.7.1
  • vite-plugin-vue-inspector ^4.0.2
  • vue-router ^4.3.0
  • nuxt ^3.9.0
  • vite *
packages/devtools-ui-kit/package.json
  • @iconify-json/carbon ^1.1.31
  • @iconify-json/logos ^1.1.42
  • @iconify-json/ri ^1.1.20
  • @iconify-json/tabler ^1.1.109
  • @nuxt/kit ^3.11.2
  • @nuxtjs/color-mode ^3.3.3
  • @unocss/core ^0.59.0
  • @unocss/nuxt ^0.59.0
  • @unocss/preset-attributify ^0.59.0
  • @unocss/preset-icons ^0.59.0
  • @unocss/preset-mini ^0.59.0
  • @unocss/reset ^0.59.0
  • @vueuse/core ^10.9.0
  • @vueuse/integrations ^10.9.0
  • @vueuse/nuxt ^10.9.0
  • defu ^6.1.4
  • focus-trap ^7.5.4
  • splitpanes ^3.1.5
  • unocss ^0.59.0
  • v-lazy-show ^0.2.4
  • nuxt ^3.11.2
packages/devtools-wizard/package.json
  • consola ^3.2.3
  • diff ^5.2.0
  • global-directory ^4.0.1
  • magicast ^0.3.3
  • pathe ^1.1.2
  • pkg-types ^1.0.3
  • prompts ^2.4.2
  • rc9 ^2.1.1
  • semver ^7.6.0
  • @types/diff ^5.0.9
  • @types/prompts ^2.4.9
  • unbuild ^2.0.0
packages/devtools/package.json
  • @antfu/utils ^0.7.7
  • @nuxt/kit ^3.11.2
  • @vue/devtools-applet ^7.0.25
  • @vue/devtools-core ^7.0.25
  • @vue/devtools-kit ^7.0.25
  • birpc ^0.2.17
  • consola ^3.2.3
  • cronstrue ^2.49.0
  • destr ^2.0.3
  • error-stack-parser-es ^0.1.1
  • fast-glob ^3.3.2
  • flatted ^3.3.1
  • get-port-please ^3.1.2
  • hookable ^5.5.3
  • image-meta ^0.2.0
  • is-installed-globally ^1.0.0
  • launch-editor ^2.6.1
  • local-pkg ^0.5.0
  • magicast ^0.3.3
  • nypm ^0.3.8
  • ohash ^1.1.3
  • pacote ^17.0.6
  • pathe ^1.1.2
  • perfect-debounce ^1.0.0
  • pkg-types ^1.0.3
  • rc9 ^2.1.1
  • scule ^1.3.0
  • semver ^7.6.0
  • simple-git ^3.24.0
  • sirv ^2.0.4
  • unimport ^3.7.1
  • vite-plugin-inspect ^0.8.3
  • vite-plugin-vue-inspector ^4.0.2
  • ws ^8.16.0
  • @iconify-json/bxl ^1.1.10
  • @iconify-json/carbon ^1.1.31
  • @iconify-json/logos ^1.1.42
  • @iconify-json/ri ^1.1.20
  • @iconify-json/simple-icons ^1.1.99
  • @iconify-json/tabler ^1.1.109
  • @nuxt/content ^2.12.1
  • @nuxt/test-utils 3.9.0
  • @nuxtjs/color-mode ^3.3.3
  • @parcel/watcher ^2.4.1
  • @types/markdown-it-link-attributes ^3.0.5
  • @types/ua-parser-js ^0.7.39
  • @unocss/nuxt ^0.59.0
  • @unocss/preset-icons ^0.59.0
  • @unocss/preset-uno ^0.59.0
  • @unocss/runtime ^0.59.0
  • @vitest/ui ^1.4.0
  • @vueuse/nuxt ^10.9.0
  • esno ^4.7.0
  • floating-vue 5.0.2
  • fuse.js ^7.0.0
  • json-editor-vue ^0.13.0
  • markdown-it ^14.1.0
  • markdown-it-link-attributes ^4.0.1
  • nanoid ^5.0.7
  • nitropack ^2.9.6
  • nuxt ^3.11.2
  • ofetch ^1.3.4
  • quicktype-core ^23.0.115
  • shiki ^1.2.4
  • theme-vitesse ^0.7.8
  • ua-parser-js ^1.0.37
  • unocss ^0.59.0
  • unplugin-vue-markdown ^0.26.0
  • vanilla-jsoneditor ^0.23.1
  • vis-data ^7.1.9
  • vis-network ^9.1.9
  • vue-tsc ^2.0.11
  • vue-virtual-scroller 2.0.0-beta.8
  • xterm ^5.3.0
  • xterm-addon-fit ^0.8.0
  • nuxt ^3.9.0
  • vite *
playgrounds/empty/package.json
  • @types/node ^20.12.5
  • nuxt ^3.11.2
playgrounds/module-starter/client/package.json
playgrounds/module-starter/package.json
  • @nuxt/kit ^3.11.2
  • sirv ^2.0.4
  • @iconify-json/carbon ^1.1.31
  • @nuxt/module-builder ^0.5.5
  • @nuxt/schema ^3.11.2
  • @nuxt/test-utils ^3.12.0
  • eslint ^9.0.0
  • nuxt ^3.11.2
  • vitest ^1.4.0
playgrounds/module-starter/playground/package.json
playgrounds/tab-layers/package.json
playgrounds/tab-pinia/package.json
  • @pinia/nuxt ^0.5.1
  • @vueuse/core ^10.9.0
  • pinia ^2.1.7
  • @exampledev/new.css ^1.1.3
  • cypress ^13.7.2
  • nuxt ^3.11.2
playgrounds/tab-seo/package.json
  • @types/node ^20.12.5
  • nuxt ^3.11.2
playgrounds/tab-server-route/package.json
  • @types/node ^20.12.5
  • nuxt ^3.11.2
playgrounds/tab-timeline/package.json
  • @types/node ^20.12.5
  • nuxt ^3.11.2

  • Check this box to trigger a request for Renovate to run again on this repository

Ability to remove data-v-inspector

Nuxt/devtools is cluttering up browser devtools
I understand this is required for opening component in vscode, but not everyone uses it. But everyone gets devtools cluttered.

Are there any plans to move from data-v attributes?
It would be great to turn off that feature

image

Vite Error (Unquoted attribute value cannot contain U+0022)

I have faced this issue trying to install the devtool in nuxt as a module.
Here is some info for context:

OS: Ubuntu 22.04
Node: v16.19.1
tested with local node install and in a dev container.

Module installed on the project:

modules: [
    "@nuxtjs/tailwindcss",
    "nuxt-social-tags",
    "@nuxtjs/i18n",
    "nuxt-directus",
    "nuxt-headlessui",
    "@vueuse/nuxt",
    "@nuxt/devtools",
    //    "@nuxtjs/partytown",
  ],

dependencies:

"devDependencies": {
    "@nuxt/devtools": "^0.2.5",
    "@nuxtjs/i18n": "^8.0.0-beta.10",
    "@nuxtjs/partytown": "^1.3.0",
    "@nuxtjs/tailwindcss": "^6.4.0",
    "@tailwindcss/forms": "^0.5.3",
    "@vueuse/core": "^9.6.0",
    "@vueuse/nuxt": "^9.6.0",
    "nuxt": "^3.2.3",
    "nuxt-headlessui": "^1.1.1"
  },
  "dependencies": {
    "nuxt-directus": "^3.2.2",
    "nuxt-social-tags": "^1.2.3",
    "stripe": "^11.6.0"
  }

logs:

 ERROR  Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).


 ERROR  Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).


 ERROR  Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).


 ERROR  Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).


 ERROR  Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).


 ERROR  Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).


 ERROR  Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`). (repeated 3 times)

β„Ή Vite client warmed up in 1824ms
βœ” Nitro built in 172 ms
locale it-IT
[Vue warn]: Unhandled error during execution of setup function 
  at <LayoutLoader key="default" name="default" hasTransition=true >
[nuxt] error caught during app initialization [[vite-node] [plugin:vite-plugin-vue-inspector] [18] /components/corporate/navbar.vue?vue&type=i18n&index=0&lang.yaml <br><pre>export default function (Component) {
  Component.__i18n = Component.__i18n || []
  Component.__i18n.push({
    "locale": "",
    "resource": {
      "en-US": {
        "menu-path": {
          "smalti-universali": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["/brand/p/smalti-universali"])};fn.source="/brand/p/smalti-universali";return fn;})(),
          "fondi-protettivi": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["/brand/p/fondi-protettivi"])};fn.source="/brand/p/fondi-protettivi";return fn;})(),
          "trattamento-legno": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["/brand/p/trattamento-legno"])};fn.source="/brand/p/trattamento-legno";return fn;})()
        }
      },
      "it-IT": {
        "title": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["Questa Γ¨ la Pagina di &lt;b data-v-inspector=\"components/corporate/navbar.vue:176:32\"&gt;brand&lt;/b&gt;"])};fn.source="Questa Γ¨ la Pagina di &lt;b data-v-inspector=\"components/corporate/navbar.vue:176:32\"&gt;brand&lt;/b&gt;";return fn;})(),
        "seo": {
          "title": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["brand: ecosmalto per tutte le superfici"])};fn.source="brand: ecosmalto per tutte le superfici";return fn;})(),
          "description": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["Linea di ecosmalti per ogni superficie e supporto nata per sostenere la cultura del riciclo e del riuso contro gli sprechi."])};fn.source="Linea di ecosmalti per ogni superficie e supporto nata per sostenere la cultura del riciclo e del riuso contro gli sprechi.";return fn;})()
        }
      }
    }
  })
}</pre><br>
at /components/corporate/navbar.vue?vue&type=i18n&index=0&lang.yaml ] {
  statusCode: 500,
  fatal: false,
  unhandled: false,
  statusMessage: 'Vite Error',
  __nuxt_error: true
}
locale it-IT
[Vue warn]: Unhandled error during execution of setup function 
  at <LayoutLoader key="default" name="default" hasTransition=true >
[nuxt] error caught during app initialization [[vite-node] [plugin:vite-plugin-vue-inspector] [18] /components/corporate/navbar.vue?vue&type=i18n&index=0&lang.yaml <br><pre>export default function (Component) {
  Component.__i18n = Component.__i18n || []
  Component.__i18n.push({
    "locale": "",
    "resource": {
      "en-US": {
        "menu-path": {
          "smalti-universali": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["/brand/p/smalti-universali"])};fn.source="/brand/p/smalti-universali";return fn;})(),
          "fondi-protettivi": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["/brand/p/fondi-protettivi"])};fn.source="/brand/p/fondi-protettivi";return fn;})(),
          "trattamento-legno": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["/brand/p/trattamento-legno"])};fn.source="/brand/p/trattamento-legno";return fn;})()
        }
      },
      "it-IT": {
        "title": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["Questa Γ¨ la Pagina di &lt;b data-v-inspector=\"components/corporate/navbar.vue:176:32\"&gt;brand&lt;/b&gt;"])};fn.source="Questa Γ¨ la Pagina di &lt;b data-v-inspector=\"components/corporate/navbar.vue:176:32\"&gt;brand&lt;/b&gt;";return fn;})(),
        "seo": {
          "title": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["brand: ecosmalto per tutte le superfici"])};fn.source="brand: ecosmalto per tutte le superfici";return fn;})(),
          "description": (()=&gt;{const fn=(ctx) =&gt; {const { normalize: _normalize } = ctx;return _normalize(["Linea di ecosmalti per ogni superficie e supporto nata per sostenere la cultura del riciclo e del riuso contro gli sprechi."])};fn.source="Linea di ecosmalti per ogni superficie e supporto nata per sostenere la cultura del riciclo e del riuso contro gli sprechi.";return fn;})()
        }
      }
    }
  })
}</pre><br>
at /components/corporate/navbar.vue?vue&type=i18n&index=0&lang.yaml ] {
  statusCode: 500,
  fatal: false,
  unhandled: false,
  statusMessage: 'Vite Error',
  __nuxt_error: true
}

Install VS Code Server when its running

hi i am on windows

When started vscode tunnel which is working it tells me its not running

const installed = !!await which('code-server').catch(() => null)

i am not sure this is the same as code-tunnel on windows

npx which code-tunnel                                                                                                                                         
C:\Users\xxxx\AppData\Local\Programs\Microsoft VS Code\bin\code-tunnel.EXE

Tunnel started link also works:

image

and anyway thanks for this awesome work

Vscode version:

image

ok nvm i am not sure code tunnel is the same as a code server oO

Windows: project path incorrect in nuxtrc

Windows: project path wrong syntaxe

env:

I am on Windows OS.
The devtools is not activated on my project even after running the command to enable it.

Minimal reproduction:

  • run command npx nuxi@latest devtools enable in a nuxt project on Windows
  • Launch project
  • Go on website page
  • There is no Nuxt Bubble on the page and the ALT + D command does not work

Origin of the troubleshooting

THe path written in the ~.nuxtrc is invalid for Windows

This is an example of the configuration file initiated by the command line

telemetry.enabled=false
modules.0=E:/npm/node_modules/@nuxt/devtools/module.cjs
devtoolsGlobal.projects.0=E:\PROJECT\MyProject

How to fix it:

I had to rework the path to my project in ~.nuxtrc
Just replacing backslash \ by slash / was enought

telemetry.enabled=false
modules.0=E:/npm/node_modules/@nuxt/devtools/module.cjs
devtoolsGlobal.projects.0=E:/PROJECT/MyProject

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.