-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
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
const { sentryWebpackPlugin } = loadModule('@sentry/webpack-plugin') as any; |
Above part changed 6 months ago, I believe it fails on Yarn PnP since then.
mod = dynamicRequire(module, `${cwd()}/node_modules/${moduleName}`) as T; |
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.
chargome, lesderid, icopp and gentamura
Metadata
Metadata
Assignees
Labels
Projects
Status
No status