aidenybai / aidenybai/react-grab

[Bug] Next.js App Router adds /(app-pages-browser)/ prefix to file paths, breaking "Open

Đang mở
#215 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
7.6k
Fork
340
Merge trung bình
5 giờ 12 phút
Pull request đã merge (30 ngày)
6

Mô tả

When using react-grab with Next.js App Router, the file paths reported include a /(app-pages-browser)/ prefix that doesn't exist on disk. This causes the "Open in editor" feature to fail with a file-not-found error.

**Environment**

- react-grab version: 0.1.23
- Next.js version: 14.2.5
- React version: 18.2.0
- Browser: Chrome
- OS: macOS

**Steps to Reproduce**

1. Install react-grab in a Next.js App Router project
2. Run the dev server
3. Hover over any component and use the "Open" action

**Expected Behavior**
The path should resolve to the actual file on disk, e.g.:

`app/components/label/Label/Label.tsx:18`

**Actual Behavior**
The path includes a Next.js internal module prefix:

`/(app-pages-browser)/app/components/label/Label/Label.tsx:18`

This path doesn't exist on disk, so the editor can't open it.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.