Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pnodet opened this issue Mar 29, 2024 · 5 comments

Comments

@pnodet
Copy link

pnodet commented Mar 29, 2024

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
Copy link
Author

pnodet commented Mar 29, 2024

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
Copy link
Contributor

Ankcorn commented Mar 29, 2024

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
Copy link
Author

pnodet commented Mar 29, 2024

In the tsconfig of my project

@martijnarts
Copy link

Hi, moduleResolution: bundler is not supported by Nextjs: vercel/next.js#46267 (comment)

Is there another workaround?

@micalevisk
Copy link

micalevisk commented Jul 13, 2024

it only worked here (using nodejs 16 and v0.4) when I used "module": "Node16" in my tsconfig file. Not sure if you guys could change the package.json exports to support "module": "commonjs".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants