You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use this package with a self hosted instance of a nextjs 14.2 'pages' directory app? (we've e custom collector used by other Backend apps within our org)
error - ../../node_modules/@vercel/otel/dist/edge/index.js:4:43681
Module not found: Can't resolve 'async_hooks'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./instrumentation.ts
TypeError: An error occurred while loading instrumentation hook: require(...).register is not a function
Next version: 13.2
Node version: 18.20.4
vercel/otel: 1.8.4
Is it possible to use this package with a self hosted instance of a nextjs 14.2 'pages' directory app? (we've e custom collector used by other Backend apps within our org)
I've followed the instructions outlined here -https://vercel.com/docs/observability/otel-overview but hitting some dependency/build issues.
I've added the @vercel/otel package using yarn ,
added instrument.ts ,
set the i_nstrumentationHook_ flag in next config.
First issue -
Failed to compile with the following error
So I tried adding that missing package manually to just try getting it working
Second issue
I'm now getting this build issue which is very strange. The imported types are navigable in vscode..
Any help appreciated!
The text was updated successfully, but these errors were encountered: