Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NUXT] Can't get the sourcemaps to work. #10

Open
3 tasks done
hiroshinishio opened this issue Oct 5, 2024 · 2 comments
Open
3 tasks done

[NUXT] Can't get the sourcemaps to work. #10

hiroshinishio opened this issue Oct 5, 2024 · 2 comments

Comments

@hiroshinishio
Copy link
Owner

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nuxt

SDK Version

8.32.0

Framework Version

Nuxt 3.13.2

Link to Sentry event

https://market-wiz.sentry.io/issues/5937402524/?project=4507160564858880&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&statsPeriod=24h&stream_index=1

Reproduction Example/SDK Setup

in nuxt.config.ts

sentry: {
    sourceMapsUploadOptions: {
      authToken: "",
      org: "market-wiz",
      project: "hmc-crm-nuxt",
    },
  },
....
sourcemap: {
    server: true,
    client: true,
  },
modules: [
    ....,
    '@sentry/nuxt/module'
  ],
....

sentry.client.config.ts

import * as Sentry from '@sentry/nuxt';
const router = useRouter()
const { public: { sentry } } = useRuntimeConfig()
Sentry.init({
    // If set up, you can use your runtime config here
    dsn: sentry.dsn,
    environment: sentry.environment,
    enabled: process.env.enviroment !== 'development',
    integrations: [
        Sentry.browserTracingIntegration({ router }),
        Sentry.replayIntegration({
            maskAllInputs: false,
            maskAllText: false,
        })
    ],
    tracesSampleRate: 0.2,
    replaysSessionSampleRate: 0,
    replaysOnErrorSampleRate: 1.0,
});

Also during the build the following warnings outputed:

[info] Building client...
[info] vite v5.4.8 building for production...
[sentry-vite-plugin] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[info] ✓ 3269 modules transformed.
[info] rendering chunks...
[sentry-vite-plugin] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.
[info] ✓ built in 1m 12s
[success] Client built in 71526ms
[info] Building server...
[info] vite v5.4.8 building SSR bundle for production...
[sentry-vite-plugin] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[info] transforming...
...
[sentry-vite-plugin] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.
[info] ✓ built in 1m 12s
[success] Server built in 72312ms
[success] [nitro] Generated public .output/public
[info] [nitro] Building Nuxt Nitro server (preset: `node-server`)
[sentry-rollup-plugin] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
> Found 1072 files
> Analyzing 1072 sources
> Adding source map references
> Bundled 1072 files for upload
> Bundle ID: 544229cf-c1a2-58d3-80f4-df4de27ff355
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: market-wiz
> Project: ***-nuxt
> Release: 357334fc5e7d729e8f2a12e5d7642f06c94d9a23
> Dist: None
> Upload type: artifact bundle
Source Map Upload Report
.....

Steps to Reproduce

<script setup>
  const triggerError = () => {
    throw new Error("Nuxt Button Error");
  };
</script>

<template>
  <button id="errorBtn" @click="triggerError">Trigger Error</button>
</template>

Expected Result

Have sourcemaps linked

Actual Result

Seems to me that only server-side sourcemaps are uploaded.

Copy link

gitauto-ai bot commented Oct 5, 2024

Click the checkbox below to generate a PR!

  • Generate PR

@hiroshinishio, You have 5 requests left in this cycle which refreshes on 2024-11-04 02:56:25+00:00.
If you have any questions or concerns, please contact us at [email protected].

Copy link

gitauto-ai bot commented Oct 5, 2024

Sorry, we have an error. Please try again.

Have feedback or need help?
Feel free to email [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant