nativescript-community / nativescript-community/sentry

An organization slug is required (provide with --org) on release android

Open
#11 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
18
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I resolve this issue in my project to make these changes.

first I go to https://sentry.io/settings/masaar/ in setting top organization slug, then copy organization slug and add org: __SLUG__ line

config.plugins.push(
    new SentryCliPlugin({
      urlPrefix: SENTRY_PREFIX,
      rewrite: true,
       org: '__SLUG__',
      cleanArtifacts: true,
      release: `com.iklix.klix@${appVersion}+${buildNumber}`,
      dist: `${buildNumber}.${platform}`,
      ignoreFile: '.sentrycliignore',
      include: [dist, join(dist, SOURCEMAP_REL_DIR)],
    })
  );

then I get this error error: A project slug is required. then I resolve this error using to add org: __SLUG__ line in

config.plugins.push(
    new webpack.SourceMapDevToolPlugin({
      org: '__SLUG__',
      append: `\n//# sourceMappingURL=${SENTRY_PREFIX}[name].js.map`,
      filename: join(SOURCEMAP_REL_DIR, '[name].js.map'),
    })
  );

now my project is successful build release version.
Reference : https://github.com/getsentry/sentry-cli/issues/179

sorry for weak English.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name repository files; start by locating the Android release configuration that creates SentryCliPlugin and SourceMapDevToolPlugin. Reproduce the reported --org and project-slug errors, then compare the configuration with the linked sentry-cli issue. Done means the Android release completes without these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.