Skip to content

Commit

Permalink
docs(nuxt): update readme troubleshoot section (#14309)
Browse files Browse the repository at this point in the history
nitrojs/nitro#2703 fixed

---------

Co-authored-by: Sigrid Huemer <[email protected]>
  • Loading branch information
maximepvrt and s1gr1d authored Dec 13, 2024
1 parent 450684b commit 85f87e4
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions packages/nuxt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,35 +130,6 @@ export default defineNuxtConfig({
});
```

## Troubleshooting
## Troubleshoot

When adding `sentry.server.config.ts`, 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
([Nitro issue here](https://github.com/unjs/nitro/issues/2703)).

For `npm`:

```json
"overrides": {
"@vercel/nft": "^0.27.4"
}
```

for `yarn`:

```json
"resolutions": {
"@vercel/nft": "^0.27.4"
}
```

or for `pnpm`:

```json
"pnpm": {
"overrides": {
"@vercel/nft": "^0.27.4"
}
}
```
If you encounter any issues with error tracking or integrations, refer to the official [Sentry Nuxt SDK documentation](https://docs.sentry.io/platforms/javascript/guides/nuxt/). If the documentation does not provide the necessary information, consider opening an issue on GitHub.

0 comments on commit 85f87e4

Please sign in to comment.