devtools icon indicating copy to clipboard operation
devtools copied to clipboard

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

Open ojvribeiro opened this issue 1 year ago â€ĸ 0 comments

🐛 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: -

ojvribeiro avatar Aug 18 '24 03:08 ojvribeiro