"No distribution set" on artifacts

Source maps aren’t being applied to stack traces.

  • My bundle has a sourceMappingURL comment at the end.
    //# sourceMappingURL=main.jsbundle.map
  • I uploaded the artifacts before the error occurred.
  • My artifacts are in the archive of the version that the error occurred in.

I noticed the “none” tag on my artifacts. Maybe that’s a clue?

Okay, so I found this error.

…which suggests that ~/main.jsbundle is not being matched with app:///main.jsbundle.

How do I resolve this?

Furthermore, ~/main.jsbundle is correctly associated with its sourcemap.

Welcome to the party. Sentry does not want us to use source maps.

Solved it by passing --dist <version> in the upload-sourcemaps command.