Comments (10)
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.
Ah true, sorry, my bad! Then it works 👍
from sentry-javascript-bundler-plugins.
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.
Unfortunately not. I pushed an update to the Repo
from sentry-javascript-bundler-plugins.
Thank you! I can reproduce!
from sentry-javascript-bundler-plugins.
+1 I am experiencing a similar issue.
from sentry-javascript-bundler-plugins.
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.
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.
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.
@DotCoyote great!
from sentry-javascript-bundler-plugins.
Related Issues (20)
- reactComponentAnnotation. I use an unintended value for a prop. HOT 1
- Sentry Vite Plugin throws error while building the app: TypeError: Converting circular structure to JSON HOT 2
- error: release not found HOT 6
- sentry-vite + CDN sourcemaps not working HOT 30
- esbuild plugin's debug ID generation is not deterministic HOT 6
- Cannot read properties of undefined (reading "silent") HOT 2
- Should inject banner code after `use strict` HOT 1
- Sourcemap upload not working for `.mjs` files HOT 2
- esbuild plugin: You are attempting to use this endpoint too frequently HOT 4
- sentry-webpack-plugin + electron(-forge) breaks universal builds HOT 1
- Webpack plugin causes Typescript build errors when React component annotation is enabled HOT 1
- Add `bundlesizeOptimizations` options to docs
- Source map loaded and connected to release, but still don't see any readable trace HOT 4
- Webpack plugin uploads source maps on development mode HOT 2
- VSC Debugger doesn't stop at breakpoint in TypeScript (ts) file but in Vue file
- Verbose console print from [sentry-vite-plugin] HOT 6
- Too many source-maps cause rate-limiting from the sentry API HOT 8
- Source Maps aren't mapped when working with docker HOT 5
- vite-plugin uploads sourcemaps when building for development HOT 1
- Sourcemapping broken with vite 5.1.7 and 5.2.10 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-javascript-bundler-plugins.