devtools
devtools copied to clipboard
fix: cannot "go to file" when using dynamic routes on Windows
đ 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
Then see the error in the terminal:
đ 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: -