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.
439
+
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
440
442
-
While adding these packages as direct dependencies might remove the warning messages, it often doesn't resolve the underlying functionality issues:
441
+
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:
447
+
As a workaround, create or modify `.npmrc` in your project root:
449
448
450
-
```npmrc
451
-
shamefully-hoist=true
452
-
```
453
-
<Alert level="warning">
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>
449
+
```npmrc
450
+
shamefully-hoist=true
451
+
```
456
452
453
+
{" "}
454
+
<Alert level="warning">
455
+
**Note**: While `shamefully-hoist=true` usually isn't the ideal solution from
456
+
a dependency management perspective, it's sometimes necessary for
457
+
compatibility with certain packages that expect Node.js module resolution
458
+
behavior similar to npm or yarn.
459
+
</Alert>
457
460
458
461
</Expandable>
459
462
</PlatformSection>
@@ -464,7 +467,6 @@ Learn more about fixing these caching issues in the <PlatformLink to="/sourcemap
464
467
`Failed to register ESM hook import-in-the-middle/hook.mjs`. You can add an override (npm/pnpm) or a resolution (yarn)
465
468
for `@vercel/nft` to fix this. This will add the `hook.mjs` file to your build output. See the [underlying issue in the UnJS Nitro project](https://github.com/unjs/nitro/issues/2703).
466
469
467
-
468
470
Nitro updated `@vercel/nft` in Nitro version `2.10.0`, so you might not get this error anymore, and you don't need to
469
471
add this override/resolution.
470
472
@@ -500,6 +502,7 @@ Learn more about fixing these caching issues in the <PlatformLink to="/sourcemap
500
502
```bash
501
503
pnpm add import-in-the-middle
502
504
```
505
+
503
506
</Expandable>
504
507
505
508
<Expandable permalink title="Nuxt: Server-side Nitro is not sending events">
@@ -537,6 +540,25 @@ Learn more about fixing these caching issues in the <PlatformLink to="/sourcemap
<Expandable permalink title="Out of Memory (OOM) errors during build">
549
+
The problem is related to memory consumption during the build process, especially when generating source maps. Here are some potential solutions and workarounds:
550
+
551
+
- Update your `@sentry/nextjs` package to the latest version.
552
+
- Increase Node.js memory limit: You can try increasing the memory limit for Node.js during the build process. Add this to your build command: `NODE_OPTIONS="--max-old-space-size=4096" next build`
553
+
- Disable source maps entirely: As a last resort, you can disable source map generation completely:
0 commit comments