Nuxt sentry sourcemap does not work properly #9459
Unanswered
SeyyedKhandon
asked this question in
Q&A
Replies: 4 comments 21 replies
|
not really an expert here, but something similar came up somewhere else. there is a max files size. If you are self-hosted. Maybe you could do something around here |
0 replies
|
Same issue here, in the cli I see this for my server: But during my build I see all of source maps were uploaded properly: |
15 replies
|
Did you manage to get it working? Please share the steps if so; thanks. |
6 replies
|
Here is the solution : export default defineNuxtConfig({
sourcemap: true,
vite: {
build: {
sourcemap: 'hidden',
},
plugins: [
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
// Your custom options
}),
],
},
}) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hey,
We are using Nuxt3 for our project and we are trying to integrate sentry into the backend of nuxt project.
I've followed the document and now we can see the errors in our self hosted sentry, but the problems is with source map.
I am using these steps to generate the source map and then send them to the sentry:
yarn buildnpx sentry-cli sourcemaps inject .outputnpx sentry-cli sourcemaps upload --log-level=debug --org company_name --project project-nuxt-backend .output --validate --auth-token sntrys_*** --ignore node_modulesI should note that when I run above command with out
--gnore node_modeuls, it will result in max size sentry error.The output is like this:
All reactions