diff --git a/platform-includes/getting-started-config/javascript.nuxt.mdx b/platform-includes/getting-started-config/javascript.nuxt.mdx index 1adacfbb3cf7a..76571506139df 100644 --- a/platform-includes/getting-started-config/javascript.nuxt.mdx +++ b/platform-includes/getting-started-config/javascript.nuxt.mdx @@ -69,8 +69,33 @@ dotenv.config(); // ... rest of the file ``` - In the beta state of the Nuxt SDK, some features may not work with certain deployment providers. Check the progress on GitHub: [Compatibility with different Deployment Platforms](https://github.com/getsentry/sentry-javascript/issues/14029) +#### Troubleshoot Errors during Server Startup + +After adding `sentry.server.config.ts` and building the project, you might get an error like this: +`Failed to register ESM hook import-in-the-middle/hook.mjs`. You can add an override (npm/pnpm) or a resolution (yarn) +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). + +```json {tabTitle:npm} {filename:package.json} +"overrides": { + "@vercel/nft": "^0.27.4" +} +``` + +```json {tabTitle:yarn} {filename:package.json} +"resolutions": { + "@vercel/nft": "^0.27.4" +} +``` + +```json {tabTitle:pnpm} {filename:package.json} +"pnpm": { + "overrides": { + "@vercel/nft": "^0.27.4" + } +} +```