sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Error with Nextjs build with sourcemaps

Open joseocabarcas opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
  • [x] I have reviewed the documentation https://docs.sentry.io/
  • [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases

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.

joseocabarcas avatar Aug 15 '24 21:08 joseocabarcas

@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?

AbhiPrasad avatar Aug 16 '24 02:08 AbhiPrasad

Yeah, I'm using docker with Jenkins.

Image: node:18-alpine Dependencies: [email protected] with Turborepo v.1.10.12.

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

joseocabarcas avatar Aug 16 '24 13:08 joseocabarcas

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 🥀

getsantry[bot] avatar Sep 07 '24 07:09 getsantry[bot]

+1 with this problem

  • Albert_Sans - work✅
  • Nunito_Sans - not working❌

Image

Image

zhen1asemen1uk avatar Nov 04 '24 07:11 zhen1asemen1uk

@zhen1asemen1uk could you open a new GH issue? That will help us debug further.

AbhiPrasad avatar Nov 04 '24 14:11 AbhiPrasad