Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nextjs
SDK Version
8.29.0
Framework Version
Next 14.2.5
Link to Sentry event
No response
Reproduction Example/SDK Setup
Above part changed 6 months ago, I believe it fails on Yarn PnP since then.
Inside function loadmodule
, node_modules is hard-coded which will always returns undefined
Steps to Reproduce
- Setup yarn pnp workspace
- Import
withSentryConfig
from@sentry/nextjs
inside next.config.js - Run
next build
Expected Result
Build success
Actual Result
TypeError: Cannot destructure property 'sentryWebpackPlugin' of 'utils.loadModule(...)' as it is undefined.
Metadata
Metadata
Assignees
Type
Projects
Status
No status