Skip to content

Commit 08bd181

Browse files
authored
docs(nuxt): Add "Troubleshoot Server-Side" (#11629)
* docs(nuxt): Add "Troubleshoot Server-Side" * review comments
1 parent d2b7b2c commit 08bd181

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,33 @@ dotenv.config();
6969
// ... rest of the file
7070
```
7171

72-
7372
<Alert level="warning">
7473
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)
7574
</Alert>
7675

76+
#### Troubleshoot Errors during Server Startup
77+
78+
After adding `sentry.server.config.ts` and building the project, 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+
See the [underlying issue in the UnJS Nitro project](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+
```

0 commit comments

Comments
 (0)