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

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

Open
ali4fun opened this issue Mar 29, 2022 · 1 comment
Open

Comments

@ali4fun
Copy link

ali4fun commented Mar 29, 2022

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.

@farfromrefug
Copy link
Member

@ali4fun so is this an issue or do you just share the solution to your issue?

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

No branches or pull requests

2 participants