Comments (5)
Hmm, yeah, the symptoms are similar to pnpm/pnpm#4649 I'll try some of the fixes that people mentioned in the comments and I'll report back. Worst case I guess a hacky fix could be to somehow always install @sentry/cli
fresh 🤔
from sentry-javascript-bundler-plugins.
Hi, thanks for writing in about this. The build failing non-deterministically seems very weird to me but we had issues with Sentry CLI + Vercel before. Is there anything else in the build logs worth sharing?
from sentry-javascript-bundler-plugins.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog
or Status: In Progress
, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
from sentry-javascript-bundler-plugins.
Hey all 👋🏻 we are experiencing the same issue and there is not much to go after. @hardyjosh any chance you figured out what the issue was?
Our sentry package versions:
"@sentry/react": "^7.50.0",
"@sentry/tracing": "^7.50.0",
"@sentry/vite-plugin": "0.7.2",
The log from vercel build:
[sentry-vite-plugin] Info: Sending error and performance telemetry data to Sentry.
--
13:09:43.770 | [sentry-vite-plugin] Info: To disable telemetry, set `options.telemetry` to `false`.
13:09:43.772 | ✓ 0 modules transformed.
13:09:43.772 | [sentry-plugin] spawn /vercel/path0/node_modules/.pnpm/@[email protected]/node_modules/@sentry/cli/sentry-cli ENOENT
13:09:43.772 | error during build:
13:09:43.772 | Error: spawn /vercel/path0/node_modules/.pnpm/@[email protected]/node_modules/@sentry/cli/sentry-cli ENOENT
13:09:43.772 | at ChildProcess._handle.onexit (node:internal/child_process:283:19)
13:09:43.772 | at onErrorNT (node:internal/child_process:476:16)
13:09:43.773 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
13:09:43.780 | ELIFECYCLE Command failed with exit code 1.
13:09:43.803 | Error: Command "pnpm build && pnpm run sourcemaps:clear" exited with 1
13:09:44.548 | Deployment completed
13:09:44.157 | BUILD_UTILS_SPAWN_1: Command "pnpm build && pnpm run sourcemaps:clear" exited with 1
Okay now that I've put this together, I have actually noticed the part that seems wrong
13:09:43.772 | ✓ 0 modules transformed.
Healthy builds do have a non-zero number there as well as additional logs + rebuild on a deployment that is failing this way seems to produce a healthy build again.
from sentry-javascript-bundler-plugins.
Hmm I assume this is somehow related to the build cache. The Sentry CLI binary, which can't be found here, is installed via a post-install script (trust me I don't like this but fixing this is gonna take a while) and maybe the binary isn't stored across builds.
Maybe it's related to pnpm/pnpm#4649 and is solved by setting side-effects-cache=false
in pnpm?
from sentry-javascript-bundler-plugins.
Related Issues (20)
- 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
- Cannot read properties of undefined (reading 'sentry') when using reactComponentAnnotation with @react-three/fiber HOT 2
- `sourcemaps.rewriteSources` doesn’t apply new source value HOT 8
- Upload sourcemaps for multiple environments HOT 3
- `isOlderThan` is not a function HOT 8
- [Help]: Change project release details for uploaded sourcemaps HOT 1
- Dont log warnings when certain features are disabled
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.