Skip to content

Nuxt build error : ERROR "sentry-release-injection-file" is imported as an external byΒ #14447

@ghisleouf

Description

@ghisleouf

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.28.0

Framework Version

Nuxt 3.12.3

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Hi Sentry,

I'm having a build error since an update in my project and I can't find a way to fix it.
The project is based on Nuxt3 (v. 3.12.3) and Vite.

When running npm run build command, I'm getting the following error:

ERROR "sentry-release-injection-file" is imported as an external by "@videojs/vhs-utils/cjs/resolve-url.js?commonjs-external", but is already an existing non-external module id.

Actually, the update we did is quite simple in the codebase.
We have leveraged to Dynamic component import to load Video player that wraps video.js library.

And now at build time, the previous error is triggered.

Do you have any idea from where the issue could come from ?

Thanks a lot for your help.

Best.

Expected Result

Build works.

Actual Result

Build fails.

Image

Metadata

Metadata

Assignees

Labels

BugPackage: nuxtIssues related to the Sentry Nuxt SDK

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions