zthxxx / react-dev-inspector

jump to local IDE code directly from browser React component by just a simple click
https://react-dev-inspector.zthxxx.me
MIT License
1.13k stars 67 forks source link

Jumping failed on windows(11) platform, when the component is under the path like "/[slug]/component.tsx", "/(pathless)/component.tsx" #170

Open laoxubuer opened 1 month ago

laoxubuer commented 1 month ago

When click the component on the web page ,there is a warning display on the terminal,

Could not open index.tsx in the editor.
When running on Windows, file names are checked against a whitelist to protect against remote code execution attacks. File names may consist only of alphanumeric characters (all languages), periods, dashes, slashes, and underscores.

As I Know, the "[]", "()" as a part of a directory name or file name is normally used in next.js, although my app is running & build with Vite (with plugin generouted), it has no fundamental differences between them.

Is there a solution to handle this situation?

zthxxx commented 1 month ago

Thanks, I'll try to reproducte it