Skip to content
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

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

Open
3 tasks done
ghisleouf opened this issue Nov 24, 2024 · 4 comments
Open
3 tasks done
Labels
Package: browser Issues related to the Sentry Browser SDK

Comments

@ghisleouf
Copy link

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

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Nov 24, 2024
@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Nov 24, 2024
@andreiborza
Copy link
Member

Hello @ghisleouf, thanks for writing in.

Could you please upgrade to the latest 8.40.0 version of the @sentry/nuxt sdk and see if that fixes the issue?

@ghisleouf
Copy link
Author

HI @andreiborza ,

Thanks for your quick answer.
I've just updated to 8.40.0 ("@sentry/nuxt": "^8.40.0",) but still the same exact issue.

Thanks again for your precious help.

Best.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Nov 25, 2024
@andreiborza
Copy link
Member

@ghisleouf could you please provide a minimal reproduction repo or stackblitz where we can try to investigate this?

@s1gr1d
Copy link
Member

s1gr1d commented Nov 25, 2024

I just tried to reproduce it by just using the Lazy feature on an internal component and it worked. Would appreciate a reproduction 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: browser Issues related to the Sentry Browser SDK
Projects
Status: No status
Development

No branches or pull requests

3 participants