Skip to content

Error with Nextjs build with sourcemaps #13396

@joseocabarcas

Description

@joseocabarcas

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions