Nuxt sentry sourcemap does not work properly #9459
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 |
Beta Was this translation helpful? Give feedback.
-
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:
|
Beta Was this translation helpful? Give feedback.
-
Did you manage to get it working? Please share the steps if so; thanks. |
Beta Was this translation helpful? Give feedback.
-
Here is the solution : export default defineNuxtConfig({
sourcemap: true,
vite: {
build: {
sourcemap: 'hidden',
},
plugins: [
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
// Your custom options
}),
],
},
}) |
Beta Was this translation helpful? Give feedback.
-
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 build
npx sentry-cli sourcemaps inject .output
npx sentry-cli sourcemaps upload --log-level=debug --org company_name --project project-nuxt-backend .output --validate --auth-token sntrys_*** --ignore node_modules
I 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:
Beta Was this translation helpful? Give feedback.
All reactions