-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Deployment failing because of missing optional dependencies #2319
Comments
Can you provide your |
I think the problem comes from running So what's happening
Not being able to use the default Package json
|
You shouldn't need to have the cli as a direct dependency. Try removing it from your packages.json. |
@Strernd are you specifically choosing to upload sourcemaps via cli or why do you have it listed in your package.json? Because the |
@knd775 If I remove it, the error still persists, as stated in my original post. If it is possible to upload the source maps in another way that removes the dependency I'm very much interested in doing so, but I followed Sentrys standardized onboarding tool for Next.js projects. If the Sentry wizard is not the recommended way to setup a Next.js project I'd like to know which guide to follow. |
Got it. The wizard is the recommended way, it will setup sourcemaps uploads with the webpack plugin which has a dependency on sentry-cli – you should not need |
CLI Version
2.39.1
Operating System and Architecture
Operating System Version
Amazon Linux 2023
Link to reproduction repository
No response
CLI Command
No response
Exact Reproduction Steps
Since we setup Sentry for our Next.js Frontend and went through the wizard that setups source maps almost all of our deployments are failing because of
I get this error when
npm i @sentry/cli
- When I add a new PR, and @sentry/cli is still in the dependencies it will fail. If I runnpm i @sentry/cli
again and commit it sometimes fixes it.The behavior seems very flaky and I have no clue why.
After researching and trying for 2 hours to find a workaround or fix I give up and raise this as a bug.
We are deploying this on Vercel. This seems to be related to this issue: #1849
Expected Results
@sentry/cli doesn't cause the build to fail
Actual Results
@sentry/cli causes the build to fail
Logs
/
The text was updated successfully, but these errors were encountered: