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
@@ -450,11 +449,11 @@ As a workaround, create or modify `.npmrc` in your project root:
450
449
```npmrc
451
450
shamefully-hoist=true
452
451
```
452
+
453
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
455
</Alert>
456
456
457
-
458
457
</Expandable>
459
458
</PlatformSection>
460
459
@@ -464,7 +463,6 @@ shamefully-hoist=true
464
463
`Failed to register ESM hook import-in-the-middle/hook.mjs`. You can add an override (npm/pnpm) or a resolution (yarn)
465
464
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
465
467
-
468
466
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
467
add this override/resolution.
470
468
@@ -500,6 +498,7 @@ shamefully-hoist=true
500
498
```bash
501
499
pnpm add import-in-the-middle
502
500
```
501
+
503
502
</Expandable>
504
503
505
504
<Expandable permalink title="Nuxt: Server-side Nitro is not sending events">
<Expandable permalink title="Out of Memory (OOM) errors during build">
545
+
The problem here is related to memory consumption during the build process, especially when generating source maps. Here are some potential solutions and workarounds:
546
+
547
+
- Update your `@sentry/nextjs` package to the latest version.
548
+
- 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=8192" next build`. This flag will increase the memory available to the node process to 8 GB. We have found that Next.js consumes around 4 GB in most cases. Decrease the size depending on your memory availability.
549
+
- Disable source maps entirely: As a last resort, you can disable source map generation completely:
0 commit comments