baselime / node-opentelemetry

Instrument node.js applications with open telemetry
Apache License 2.0
26 stars 1 forks source link

Cannot find module '@baselime/node-opentelemetry' or its corresponding type declarations. #5

Open pnodet opened 3 months ago

pnodet commented 3 months ago

Following the example here: https://baselime.io/docs/sending-data/languages/next.js/

Leads to the following typescript error.

Fixed on our side by setting moduleResolution: Bundler in the tsconfig.json

pnodet commented 3 months ago

In your t3app exemple your moduleResolution is set to Node which is deprecated I believe but it seems to work, not sure why it doesn't work with Node on our side

Ankcorn commented 3 months ago

Hi @pnodet, just to confirm was the fix setting module resolution to bundler in my package.json or yours?

Thanks for figuring this out!

pnodet commented 3 months ago

In the tsconfig of my project

martijnarts commented 1 month ago

Hi, moduleResolution: bundler is not supported by Nextjs: https://github.com/vercel/next.js/issues/46267#issuecomment-1444197712

Is there another workaround?