You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pnpm, you might encounter errors related to packages that can't be external, particularly with packages like `import-in-the-middle` and `require-in-the-middle`. These errors typically occur due to pnpm's strict dependency management and hoisting behavior.
440
+
When using pnpm, you might encounter errors related to packages that can't be external, particularly with packages like `import-in-the-middle` and `require-in-the-middle`. These errors typically occur due to pnpm's strict dependency management and hoisting behavior.
441
441
442
-
While adding these packages as direct dependencies might remove the warning messages, it often doesn't resolve the underlying functionality issues:
442
+
While adding these packages as direct dependencies might remove the warning messages, it often doesn't resolve the underlying functionality issues:
As a workaround, create or modify `.npmrc` in your project root:
448
+
As a workaround, create or modify `.npmrc` in your project root:
449
449
450
-
```npmrc
451
-
shamefully-hoist=true
452
-
```
453
-
<Alert level="warning">
450
+
```npmrc
451
+
shamefully-hoist=true
452
+
```
453
+
<Alert level="warning">
454
454
**Note**: While `shamefully-hoist=true` usually isn't the ideal solution from a dependency management perspective, it's sometimes necessary for compatibility with certain packages that expect Node.js module resolution behavior similar to npm or yarn.
455
-
</Alert>
455
+
</Alert>
456
456
457
457
458
458
</Expandable>
@@ -540,4 +540,34 @@ Learn more about fixing these caching issues in the <PlatformLink to="/sourcemap
If you need additional help, you can [ask on GitHub](https://github.com/getsentry/sentry-javascript/issues/new/choose). Customers on a paid plan may also contact support.
0 commit comments