Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(nuxt): update readme troubleshoot section #14309

Merged
merged 6 commits into from
Dec 13, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 documentation for Nuxt at [https://docs.sentry.io/platforms/javascript/guides/nuxt/](https://docs.sentry.io/platforms/javascript/guides/nuxt/).
maximepvrt marked this conversation as resolved.
Show resolved Hide resolved