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

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

Open
laoxubuer opened this issue Jun 12, 2024 · 1 comment

Comments

@laoxubuer
Copy link

laoxubuer commented Jun 12, 2024

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?

@laoxubuer laoxubuer changed the title Jump to source code failed on windows platform, when the component under the path like "/[slug]/component.tsx", "/(pathless)/component.tsx")" Jumping failed on windows(11) platform, when the component is under the path like "/[slug]/component.tsx", "/(pathless)/component.tsx")" Jun 12, 2024
@laoxubuer laoxubuer changed the title Jumping failed on windows(11) platform, when the component is under the path like "/[slug]/component.tsx", "/(pathless)/component.tsx")" Jumping failed on windows(11) platform, when the component is under the path like "/[slug]/component.tsx", "/(pathless)/component.tsx" Jun 12, 2024
@zthxxx
Copy link
Owner

zthxxx commented Jun 15, 2024

Thanks, I'll try to reproducte it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants