Skip to content

latest @sentry/nuxt throw error at build time #16122

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

Open
3 tasks done
rtabulov opened this issue Apr 24, 2025 · 1 comment
Open
3 tasks done

latest @sentry/nuxt throw error at build time #16122

rtabulov opened this issue Apr 24, 2025 · 1 comment

Comments

@rtabulov
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nuxt

SDK Version

9.14.0

Framework Version

nuxt@3.16.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

freshly installed @sentry/nuxt via sentry wizard.

Expected Result

expected to build without errors

issue seems similar to #14980 , but im not using svelte so im unable to fix with the suggested method

Actual Result

command nuxt build exits with error

# ...bunch of source map logs
[sentry-vite-plugin] Info: Successfully uploaded source maps to Sentry
ℹ ✓ built in 12.13s                                                                                                                                                       10:25:42 AM
✔ Server built in 12181ms                                                                                                                                                 10:25:42 AM
✔ Generated public .output/public                                                                                                                                   nitro 10:25:40 AM
ℹ Building Nuxt Nitro server (preset: node-server, compatibility date: 2024-11-01)                                                                                  nitro 10:25:41 AM

[nitro 10:26:06 AM]  ERROR  TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received 'REDACTED/i18n/locales/\x00sentry-release-injection-file'


undefined


 ERROR  The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received 'REDACTED/i18n/locales/\x00sentry-release-injection-file'           10:26:06 AM

    at statSync (node:fs:1665:10)
    at resolveModuleURL (node_modules/exsolve/dist/index.mjs:1247:11)
    at resolveModulePath (node_modules/exsolve/dist/index.mjs:1306:20)
    at _resolvePathGranularly (node_modules/@nuxt/kit/dist/index.mjs:2437:30)
    at async resolvePath (node_modules/@nuxt/kit/dist/index.mjs:2328:15)
    at async Object.transform (node_modules/@nuxtjs/i18n/dist/module.mjs:1098:25)
    at async transform (node_modules/rollup/dist/es/shared/node-entry.js:20906:16)
    at async ModuleLoader.addModuleSource (node_modules/rollup/dist/es/shared/node-entry.js:21119:36) 



 ERROR  The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received 'REDACTED/i18n/locales/\x00sentry-release-injection-file'           10:26:06 AM

error: script "build" exited with code 1
@s1gr1d
Copy link
Member

s1gr1d commented Apr 25, 2025

Hello, thanks for writing in. Can you share some information about the OS you are using? There seems to be an issue with the slashes in the path (/\)

@s1gr1d s1gr1d self-assigned this Apr 25, 2025
@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 3 Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Development

No branches or pull requests

2 participants