Skip to content

Commit 64eebb0

Browse files
committed
review comments
1 parent 3c7a38e commit 64eebb0

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

packages/nuxt/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,16 @@ Sentry.init({
111111

112112
## Uploading Source Maps
113113

114-
To upload source maps, you can use the `sourceMapsUploadOptions` option inside the `sentry` options of your
115-
`nuxt.config.ts`:
114+
To upload source maps, you have to enable client source maps in your `nuxt.config.ts`. Then, you add your project
115+
settings to the `sentry.sourceMapsUploadOptions` of your `nuxt.config.ts`:
116116

117117
```javascript
118118
// nuxt.config.ts
119119
export default defineNuxtConfig({
120+
sourcemap: { client: true },
121+
120122
modules: ['@sentry/nuxt/module'],
121123
sentry: {
122-
debug: true,
123124
sourceMapsUploadOptions: {
124125
org: 'your-org-slug',
125126
project: 'your-project-slug',
@@ -132,8 +133,8 @@ export default defineNuxtConfig({
132133
## Troubleshooting
133134

134135
When adding `sentry.server.config.ts`, you might get an error like this:
135-
"`Failed to register ESM hook (import-in-the-middle/hook.mjs)`". You can add an override (npm/pnpm) or a resolution
136-
(yarn) for `@vercel/nft` to fix this. This will add the `hook.mjs` file to your build output
136+
"`Failed to register ESM hook import-in-the-middle/hook.mjs`". You can add an override (npm/pnpm) or a resolution (yarn)
137+
for `@vercel/nft` to fix this. This will add the `hook.mjs` file to your build output
137138
([Nitro issue here](https://github.com/unjs/nitro/issues/2703)).
138139

139140
```json
@@ -142,10 +143,10 @@ When adding `sentry.server.config.ts`, you might get an error like this:
142143
}
143144
```
144145

145-
or
146+
or in `yarn`:
146147

147148
```json
148-
"resolutions": {
149-
"@vercel/nft": "^0.27.4"
150-
}
149+
"resolutions": {
150+
"@vercel/nft": "^0.27.4"
151+
}
151152
```

0 commit comments

Comments
 (0)