vercel / vercel/next.js

"Could not open page.js in the editor" error on VSCode Windows

Open
#65,608 8 comments 0 reactions 1 assignee View on GitHub

@EAzZY-1wnL is already working on this.

Since Aug 18, 2025.

Dominant language
JavaScript
Stars
142k
Forks
32.4k
Avg merge
2d 14h
Merged PRs (30d)
351

Description

Link to the code that reproduces this issue

https://github.com/YerayAlonso/nextjs-group-route-debug

To Reproduce
  1. Open the workspace in VSCode, in Windows
  2. Start the application in dev mode (pnpm dev)
  3. Navigate to the /broken route. An error is thrown, as expected, but you can't navigate to the file in VSCode from the browser. And the terminal in VSCode says:

Could not open page.tsx in the editor.

When running on Windows, file names are checked against an access list to protect against remote code execution attacks. File names may consist only of alphanumeric characters (all languages), periods, dashes, slashes, and underscores.

Current vs. Expected behavior

I'd expect to be sent to VSCode with the file where the exception happened.
This is how it works if you try the /working route in the same test project.
The only difference is in the (group) route.

Provide environment information
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro     
  Available memory (MB): 16274
  Available CPU cores: 12     
Binaries:
  Node: 20.10.0
  npm: N/A
  Yarn: N/A
  pnpm: 8.15.3
Relevant Packages:
  next: 14.3.0-canary.54 // Latest available version is detected (14.3.0-canary.54).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.1.3
Next.js Config:
  output: N/A
Which area(s) are affected? (Select all that apply)

Developer Experience

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.