Skip to content

Commit 6d758d2

Browse files
committed
docs(nuxt): Add "Troubleshoot Server-Side"
1 parent d2b7b2c commit 6d758d2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

platform-includes/getting-started-config/javascript.nuxt.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,36 @@ dotenv.config();
6969
// ... rest of the file
7070
```
7171

72+
#### Troubleshoot Server-Side
7273

7374
<Alert level="warning">
7475
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)
7576
</Alert>
7677

78+
When adding `sentry.server.config.ts`, you might get an error like this:
79+
`Failed to register ESM hook import-in-the-middle/hook.mjs`. You can add an override (npm/pnpm) or a resolution (yarn)
80+
for `@vercel/nft` to fix this. This will add the `hook.mjs` file to your build output
81+
([Nitro issue here](https://github.com/unjs/nitro/issues/2703)).
82+
83+
```json {tabTitle:npm} {filename:package.json}
84+
"overrides": {
85+
"@vercel/nft": "^0.27.4"
86+
}
87+
```
88+
89+
```json {tabTitle:yarn} {filename:package.json}
90+
"resolutions": {
91+
"@vercel/nft": "^0.27.4"
92+
}
93+
```
94+
95+
```json {tabTitle:pnpm} {filename:package.json}
96+
"pnpm": {
97+
"overrides": {
98+
"@vercel/nft": "^0.27.4"
99+
}
100+
}
101+
```
102+
103+
104+

0 commit comments

Comments
 (0)