Skip to content

Sentry cant upload sourcemaps in default next.js project #13270

Closed
@GorlikItsMe

Description

@GorlikItsMe

Environment

SaaS (https://sentry.io/)

What are you trying to accomplish?

I want to add sentry to my next.js project

How are you getting stuck?

For some reason sentry cant upload sourcemaps during build time. Because of that, you cant see the source code in the sentry dashboard.

I created example repository: https://github.com/GorlikItsMe/nextjs-sentry-dont-work

When i enabled logs (silent: false in next.config.mjs) i saw this:

[@sentry/nextjs - Node.js] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - Node.js] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.
[@sentry/nextjs - Edge] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - Edge] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.
[@sentry/nextjs - Client] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - Client] Warning: Didn't find any matching sources for debug ID upload. Please check the `sourcemaps.assets` option.

Thank you in advance for any advice

Where in the product are you?

Unknown

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions