Virtual Files tab is empty on Nuxt 5 / Nitro 3: /_vfs.json returns 404
Mantenedores costumam responder em até 1 dia
Um pull request relacionado já foi integrado.
- #1132 de @antfubot — integrado
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- nuxtjs, typescript, vite
Direção de pesquisa
Start with the request path: the client fetch of /_vfs.json in the published @nuxt/devtools-assets utils bundle, and the dev-server route app.get("/_vfs/**", createVFSHandler(...)) in nitro/dist/_dev.mjs. Reproduce by hitting /_vfs/ with Accept: application/json on a running nuxt dev server. Done means the Virtual Files tab lists entries again; the issue leaves open whether the fix belongs in DevTools or Nitro, so confirm the side with maintainers first.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Environment
@nuxt/devtools4.0.0-beta.5 (@nuxt/devtools-assets4.0.0-beta.5)nuxt5.0.0-2610121449-e69fd4e (nuxt-nightly@5x)nitro3.0.260903-beta- Vite 8.3.4, Node.js 26.11.1, Windows 11
Reproduction
- Nuxt 5 nightly app with
@nuxt/devtools4 beta,nuxt dev - Open DevTools, authorize the browser, open the "Virtual Files" tab
- The tab stays empty; the dev server logs
GET /_vfs.json 404
Cause (as far as I can tell)
The client fetches the file list from /_vfs.json (published bundle: @nuxt/devtools-assets/dist/_nuxt/utils-k1kpr21p.js, $fetch('/_vfs.json', { baseURL: '/', responseType: 'json' })).
Nitro 3's dev server only registers app.get("/_vfs/**", createVFSHandler(this.nitro)) (nitro/dist/_dev.mjs). Checked with curl against the running dev server:
| Request | Status |
|---|---|
GET /_vfs.json |
404 |
GET /_vfs.json/<id> |
404 |
GET /_vfs/ with Accept: application/json |
200, JSON (rootDir, entries, current) |
GET /_vfs/.json |
200, JSON |
GET /_vfs/<id> with Accept: application/json |
200, JSON |
Note that the JSON returned by Nitro 3 still lists entries[].path as /_vfs.json/<id>, which 404s as well. So this could be fixed on either side: DevTools requesting /_vfs/ with Accept: application/json (or /_vfs/.json), or Nitro registering the /_vfs.json/** route again. Happy to open the issue at nitrojs/nitro instead if that is the better place.
- Linguagem predominante
- TypeScript
- Estrelas
- 3.3k
- Forks
- 222
- Merge médio
- 1d 8h
- PRs com merge (30d)
- 35
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de nuxt/devtools
-
fix: Inspect panel styles break when host page sets a custom html font-size (rem-based units)Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertabug p3-minor-bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
nuxt/devtools#973 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
nuxt/devtools#1147 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
feat: Nuxt devtools for AIAbertaenhancement p2-nice-to-have
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Mantenedores costumam responder em até 1 dia
-
bug needs reproduction
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
nuxt/devtools#1081 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug DevTools v4 p3-minor-bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
nuxt/devtools#1050 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de nuxt/devtools
Issues semelhantes
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timingAbertae2e-failure ready-to-code
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
devswha/herdr-web-ui#2884 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
b:minor bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
software-mansion/argent#1771 ·
Mantenedores costumam responder em até 1 dia
-
Resources: New palettes of XiamenTalvez já em andamento @rmt-svc assumiu hoje. Abertaresources
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 74/100
railmapgen/rmg-palette#2491 ·
Mantenedores costumam responder em até 4 dias