Skip to content

How does sentry find the correct source map to use? #486

Description

@econner

I am having trouble getting sentry to recognize source maps I've uploaded using sentry-cli with node js.

I am using babel to generate source files which upon erroring show a directory structure such as,
image

I've checked to ensure that the uploaded files in the created release match the Artifact path exactly that Sentry sees,
image

If I download index.js from the artifacts listing in sentry, it has a sourceMappingURL comment:

//# sourceMappingURL=index.js.map

which should point to the map file.

Does this sourceMappingURL need instead to be /app/srv/routes/index.js.map? Or should it work as specified with the relative path?

Also, does uploading the same artifact a second time in the same release overwrite the previous artifact?

I've tried to figure out how to get babel to generate these fully qualified paths, but so far no luck. I tried inline source mappings but it makes my app files too large to be usable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions