-
Notifications
You must be signed in to change notification settings - Fork 29
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
"Can't resolve 'child_process'" error when using pino-sentry with Next.js #55
Comments
|
Yes, I read the url. I guess you mean that the error is due to the Sentry package, however I only get that error when using pino-sentry, so I'm not sure... sorry if I made a mistake. Anyway, I did create a reproduction. It's a basic create-next-app, to which I've only added the packages and logger code that I posted in my first message. |
I'm guessing you're trying to load pino to client side code: and hence the error. I'm not familiar with next.js, so it might take some time to for me to process it through however, the problem could be also the way next.js does bundling. pino has some docs about it: |
you forgot to add instructions. and what's the reproduce steps there? |
I do successfully use pino on the client side already and I do not get that error. The error only shows up as soon as I import As for the repro, I use npm and do Thanks for your help! |
no error here
|
Hello @glensc I am currently facing the same issue. I have just added into my project pino-sentry and faced the same issue. Maybe is a node.js related issue? My versions are
I will try to reproduce the repo or use the repo provided by @grazianodev thanks! EDIT: I have cloned the reproduction repo and I got the same issue My steps:
Thanks! EDIT 2: I wonder if this could be a dependencies version issue? in transport.js you are referencing And I have spotted this issue from the original Sentry integration |
Same issue here! |
Hello,
I've installed pino-sentry in a Next.js project, however even by just importing from the package like this:
I get the following error:
I would really like to try and use pino-sentry so any help would be appreciated! These are my package versions in case it matters:
The text was updated successfully, but these errors were encountered: