Skip to content

fix: cannot "go to file" when using dynamic routes on Windowsย #707

Open
@ojvribeiro

Description

@ojvribeiro

๐Ÿ› The bug

The Component Inspector on Nuxt DevTools can't open a file in the editor if using square brackets on the file name (eg: dynamic routes), which works normally on Linux.

๐Ÿ› ๏ธ To reproduce

https://github.com/ojvribeiro/nuxt-devtools-issue

To reproduce is necessary to be in a Windows enviroment:

  • Run the attached reproduction
  • Click the "Nested Page" link to go to the nested page
  • Use the component inspection tool to select the "Nested child" heading

image

Then see the error in the terminal:

image

๐ŸŒˆ Expected behavior

It's expected to go to file on component inspection on Windows. I'm not sure since when this bug started to happen. It worked fine some time ago.

โ„น๏ธ Additional context

Nuxt project info: 23:57:39


  • Operating System: Windows_NT
  • Node Version: v20.13.1
  • Nuxt Version: 3.12.4
  • CLI Version: 3.11.1
  • Nitro Version: -
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, compatibilityDate
  • Runtime Modules: -
  • Build Modules: -

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions