-
-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
getsentry/sentry-javascript
#4311Labels
BugIssue typeIssue type
Description
Environment
How do you use Sentry?
Sentry SaaS (sentry.io)
Which SDK and version?
e.g: JavaScript (latest @sentry/nextjs)
Steps to Reproduce
- Setup Sentry for Next.js project
- CI starts the build with
npm ci --ignore-scripts - Run
npm build - Sentry fails with the below error.
Run `npm audit` for details.
❯ npm run build
> try-sentry-nextjs@0.1.0 build
> next build
info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info - Checking validity of types
info - Creating an optimized production build
Failed to compile.
Sentry CLI Plugin: spawn /Users/ddd/Development/Reviews/try-sentry-nextjs-review/node_modules/@sentry/cli/sentry-cli ENOENT
> Build error occurred
Error: > Build failed because of webpack errors
at /Users/ddd/Development/Reviews/try-sentry-nextjs-review/node_modules/next/dist/build/index.js:397:19
at async Span.traceAsyncFn (/Users/ddd/Development/Reviews/try-sentry-nextjs-review/node_modules/next/dist/telemetry/trace/trace.js:60:20)
at async Object.build [as default] (/Users/ddd/Development/Reviews/try-sentry-nextjs-review/node_modules/next/dist/build/index.js:77:25)
Expected Result
Sentry should not be executing stuff in CI environments.
Actual Result
Sentry executes stuff in CI environments.
Related: #915
Metadata
Metadata
Assignees
Labels
BugIssue typeIssue type