-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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!
Metadata
Metadata
Assignees
Labels
No labels