Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ojvribeiro opened this issue Aug 18, 2024 · 0 comments
Open

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

ojvribeiro opened this issue Aug 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ojvribeiro
Copy link

ojvribeiro commented Aug 18, 2024

๐Ÿ› 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 ojvribeiro added the bug Something isn't working label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant