Skip to content

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

Closed
@rtabulov

Description

@rtabulov

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

[email protected]

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

Metadata

Metadata

Assignees

Labels

BugExternal DependencyTo close this issue, an external dependency needs to be adjusted/fixedNuxt

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions