ReferenceError when running Next.js app with AppMap
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- next.js, node.js, typescript
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện npx appmap-node npx next start với Next.js 14.2.3, AppMap 2.24.3 và Node.js 18.17.1. Truy vết lỗi qua các đường dẫn được báo cáo appmap-node/dist/parameter.js, event.js, Recording.js và recorder.js, sau đó xác minh rằng ứng dụng Next.js khởi động mà không có ReferenceError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello AppMap team,
I encountered an issue while trying to run my Next.js application with AppMap. When executing the command npx appmap-node npx next start, I received the following error:
⨯ ReferenceError: Cannot access 'default' before initialization
at Object.default (webpack-internal:///./node_modules/next/dist/client/router.js:21:9)
at Function.entries (<anonymous>)
at propertiesSchema (/node_modules/appmap-node/dist/parameter.js:143:19)
at parameterSchema (/node_modules/appmap-node/dist/parameter.js:120:29)
at parameter (/node_modules/appmap-node/dist/parameter.js:21:20)
at optParameter (/node_modules/appmap-node/dist/parameter.js:90:12)
at makeReturnEvent (/node_modules/appmap-node/dist/event.js:31:52)
at Recording.functionReturn (/node_modules/appmap-node/dist/Recording.js:56:51)
at /node_modules/appmap-node/dist/recorder.js:100:58
at Array.forEach (<anonymous>)
at record (/node_modules/appmap-node/dist/recorder.js:100:20)
at webpack_require (/build/server/webpack-runtime.js:33:27)
It seems that there might be an incompatibility between AppMap and my Next.js project, specifically related to the router initialization.
Environment:
- Next.js version: 14.2.3
- AppMap version: 2.24.3
- Node.js version: 18.17.1
Thank you!
- Ngôn ngữ chính
- TypeScript
- Star
- 13
- Fork
- 6
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getappmap/appmap-node
-
Instrument pre-ES6 classesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
getappmap/appmap-node#183 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
getappmap/appmap-node#182 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
getappmap/appmap-node#181 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wrong parent in some async flowsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
getappmap/appmap-node#180 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support better-sqlite3Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
getappmap/appmap-node#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getappmap/appmap-node
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feat(icons): add [solidping]Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
homarr-labs/dashboard-icons#2939 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Agent/category reasoning variants are still checked against the stale model cache in chat.paramsĐang mởopencode
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
code-yeongyu/oh-my-openagent#10003 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Actions on ToastsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
nextcloud-libraries/nextcloud-dialogs#2669 ·
Maintainer thường phản hồi trong vòng 1 ngày