getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.87k stars 1.55k forks source link

Error with Nextjs build with sourcemaps #13396

Open joseocabarcas opened 3 weeks ago

joseocabarcas commented 3 weeks ago

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

8.26.0

Framework Version

Nextjs 14.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

I’m having an issue when trying to build the project. I just updated from version 7 to 8 of @sentry/nextjs and when I try to build I’m getting this error:

unhandledRejection [Error: ENOENT: no such file or directory, mkdtemp '3/sentry-bundler-plugin-upload-XXXXXX'] { errno: -2, code: 'ENOENT', syscall: 'mkdtemp', path: '3/sentry-bundler-plugin-upload-XXXXXX' }

If I remove SENTRY_AUTH_TOKEN from my .env, the build works for me.

Steps to Reproduce

upgrade to version 8

Expected Result

build successful

Actual Result

main:build: ⨯ Failed to find font override values for font Nunito Sans main:build: unhandledRejection [Error: ENOENT: no such file or directory, mkdtemp '4/sentry-bundler-plugin-upload-XXXXXX'] { main:build: errno: -2, main:build: code: 'ENOENT', main:build: syscall: 'mkdtemp', main:build: path: '4/sentry-bundler-plugin-upload-XXXXXX' main:build: } main:build:  ELIFECYCLE  Command failed with exit code 1.

AbhiPrasad commented 3 weeks ago

@joseocabarcas what OS is this running on? Is this in a docker container?

Are you able to provide a reproduction to help us debug further?

joseocabarcas commented 3 weeks ago

Yeah, I'm using docker with Jenkins.

Image: node:18-alpine Dependencies: pnpm@9.5.0 with Turborepo v.1.10.12.

Unfortunately, I'm not allowed to share the repo but I'll try to reproduce it from scratch.

getsantry[bot] commented 5 days ago

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 remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀