-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Module not found: Can't resolve '@sentry/utils' with Next.js (app router), pnpm #14316
Comments
@lforst i created a new issue |
Hi, unfortunately we lack things to exactly reproduce your issue. Would you mind creating a minimal reproduction example we can actually run? Thank you! |
Hi, since the build is working outside of docker I think this is not something we can solve. You need to adjust your Dockerfile to correctly include all the dependencies. |
Hi @lforst thanks, this kind of bug is only happening on local container build. I retried running a github action and it built fine. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.38.0
Framework Version
React 18.3.1 Next.js 14.2.16
Link to Sentry event
No response
Reproduction Example/SDK Setup
// This file configures the initialization of Sentry on the client.
// The config you add here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
// This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on).
// The config you add here will be used whenever one of the edge features is loaded.
// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
// This file configures the initialization of Sentry on the server.
// The config you add here will be used whenever the server handles a request.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
/// Nextjs config:
Steps to Reproduce
Build via
pnpm next build
works, via podman does notExpected Result
Build the container
Actual Result
Seem like the bug effect only /api/* routes.
The text was updated successfully, but these errors were encountered: