-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 module does not take into account "srcDir" for client instrumentation #13330
Comments
Thanks for already testing the experimental Nuxt SDK and filing this! We will fix this, as we want to be compatible with Nuxt 4! |
A follow-up question @max-arias: Why would you want to add the config file in the |
@s1gr1d Yeah, if I try placing just
|
Thanks for clarifying, I'll take a look! |
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
8.25.0
Framework Version
8.25.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
The Sentry module does not seem to take into account the
srcDir
config, it only uses thebuildDir
: https://github.com/getsentry/sentry-javascript/blob/master/packages/nuxt/src/module.ts#L30The current work around is to create a client file both under your
srcDir
(ie. /src) and in yourbuildDir
(ie /)With the upcoming Nuxt 4 change where the src files will live in another dir, we should fix this
Expected Result
We should read
sentry.client.config
from thesrcDir
without needing a copy in thebuildDir
Actual Result
rollup throws an error if there's nothing in "srcDir"
The text was updated successfully, but these errors were encountered: