-
-
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
Cannot destructure property 'sentryWebpackPlugin' of 'utils.loadModule(...)' as it is undefined #13665
Comments
hey @klaa97, thanks for reaching out! Are you using yarn with the |
I am not configuring it explicitly, so I think I am using |
Looks like it might still be related to #13641 We'll have a look! |
It also failed with Next.js v14.2.8. |
@chargome Any workaround or suggestion? |
@ibufu if you're using pnpm you can try setting node-linker to |
Thanks! I downgraded from 8.30.0 to 7.*. It works now. |
I spent a whole day figuring out why the sourcemap not uploaded on v7.x. // @sentry/nextjs/cjs/config/webpack.js
const SentryWebpackPlugin = utils.loadModule('@sentry/webpack-plugin'); Finally I found
I hope this can help people using pnpm monorepo. 🙏 |
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.30.0
Framework Version
Next 13.4.7
Link to Sentry event
No response
Reproduction Example/SDK Setup
I have the following versions:
If I add the
withSentryConfig
to NextJS, such as this:I get an error when building:
Steps to Reproduce
Expected Result
It succeeds the build
Actual Result
It fails the build with the error above
The text was updated successfully, but these errors were encountered: