You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platform-includes/getting-started-config/javascript.nuxt.mdx
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,8 +69,33 @@ dotenv.config();
69
69
// ... rest of the file
70
70
```
71
71
72
-
73
72
<Alertlevel="warning">
74
73
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)
75
74
</Alert>
76
75
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).
0 commit comments