Giter Club home page Giter Club logo

Comments (10)

lforst avatar lforst commented on May 24, 2024 1

Hi, we're working on resolving this. For now we don't know how long this is gonna take as we're exploring different options, however, as a temporary workaround you can use the releaseInjectionTargets option to get rid of this problem.

Simply, provide the absolute path to your entry point and it should work 🤞. For the repro repo this would look like the following:

sentryVitePlugin({
  include: ".",
  ignore: ["node_modules", "vite.config.ts"],
  org: process.env.VITE_SENTRY_ORG,
  project: process.env.VITE_SENTRY_PROJECT,
  authToken: process.env.VITE_SENTRY_AUTH_TOKEN,
  debug: true,
  releaseInjectionTargets: path.resolve(__dirname, "src", "main.ts"), // <-- important bit 
})

from sentry-javascript-bundler-plugins.

DotCoyote avatar DotCoyote commented on May 24, 2024 1

Ah true, sorry, my bad! Then it works 👍

from sentry-javascript-bundler-plugins.

lforst avatar lforst commented on May 24, 2024

Hi, we just fixed this issue. Please upgrade to version 0.2.2 and let us know if it resolves the problem for you.

from sentry-javascript-bundler-plugins.

DotCoyote avatar DotCoyote commented on May 24, 2024

Unfortunately not. I pushed an update to the Repo

from sentry-javascript-bundler-plugins.

lforst avatar lforst commented on May 24, 2024

Thank you! I can reproduce!

from sentry-javascript-bundler-plugins.

robotkutya avatar robotkutya commented on May 24, 2024

+1 I am experiencing a similar issue.

from sentry-javascript-bundler-plugins.

lforst avatar lforst commented on May 24, 2024

Hi again. We just released version 0.2.3 of the plugin. Can you try it out and confirm (or deny) that the new version works? Thank you!

Thanks btw for sticking with me here. This is all a little bit experimental tech.

from sentry-javascript-bundler-plugins.

DotCoyote avatar DotCoyote commented on May 24, 2024

Very sorry for the late response, I got sick this week. Build seems to work now (kinda), but now this error appears:

$ vue-tsc && vite build
vite v3.2.4 building for production...
[sentry-vite-plugin] Info: Sending error and performance telemetry data to Sentry.
[sentry-vite-plugin] Info: To disable telemetry, set `options.telemetry` to `false`.
✓ 147 modules transformed.
dist/assets/vue.5532db34.svg     0.48 KiB
dist/index.html                  0.44 KiB
dist/assets/index.af2b4dae.css   1.26 KiB / gzip: 0.65 KiB
dist/assets/index.889cd5c6.js    144.21 KiB / gzip: 52.42 KiB
dist/assets/index.889cd5c6.js.map 1055.49 KiB
[sentry-vite-plugin] Error: Command failed: /***/sentry-vite-axios-issue/node_modules/@sentry/cli/sentry-cli releases new b4590792cbcd6671746353ae07d5056e400bffbc
error: An organization slug is required (provide with --org)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

[sentry-plugin] Command failed: /***/sentry-vite-axios-issue/node_modules/@sentry/cli/sentry-cli releases new b4590792cbcd6671746353ae07d5056e400bffbc
error: An organization slug is required (provide with --org)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

error during build:
Error: Command failed: /***/sentry-vite-axios-issue/node_modules/@sentry/cli/sentry-cli releases new b4590792cbcd6671746353ae07d5056e400bffbc
error: An organization slug is required (provide with --org)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

    at ChildProcess.exithandler (node:child_process:412:12)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1091:16)
    at Socket.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at Pipe.<anonymous> (node:net:313:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
4.80s user 0.36s system 169% cpu 3.049s total

from sentry-javascript-bundler-plugins.

lforst avatar lforst commented on May 24, 2024

Thanks for the update. That error is probably intended. Can you double-check that you're providing an org value? Maybe the env var isn't set.

from sentry-javascript-bundler-plugins.

lforst avatar lforst commented on May 24, 2024

@DotCoyote great!

from sentry-javascript-bundler-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.