-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: Error: Can't resolve '@sentry/utils' #10266
Comments
Yarn pnp is very broken. Please try clearing all of your package manager caches, delete node modules, and try reinstalling your dependencies. Thanks! |
I think Yarn PnP is right here: the newly introduced |
Can you elaborate on why yarn pnp is very broken? I'd bet there are more issues with node modules than with pnp if we want to dive into such discussion. Btw there are no node modules with pnp but zipped packages. Therefore, the build is more reproducible with pnp. Such errors occur when packages require other packages but does not declare them as dependencies. That works with node modules since there's no isolation and everything is mixed together nbut not pnp. Basically that's what @jnoordsij said. I managed to fetch full error now
|
The same error happens on pnpm |
@simPod I firmly believe yarn pnp (and I've also gotten reports where this applies to pnpm) is harmful to the ecosystem and a massive headache for maintainers for exactly the reason SvelteKit outlines:
I do need to concede though that this issue may be a fuck-up on our part. As @jnoordsij has pointed out |
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/browser
SDK Version
7.94.1
Framework Version
React 18.2.0
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
Expected Result
No errors. v7.93.0 was fine.
Actual Result
The text was updated successfully, but these errors were encountered: