-
-
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
[@sentry/nuxt] GLOBAL_OBJ does not provided #14846
Comments
Hy, thanks for reaching out. Sadly, I am not able to reproduce your issue with pnpm. In the error message you posted, I can see that version Can you |
I'm also having the same issue using yarn The requested module 'file:///Users/emmanuelufere/Documents/dir/node_modules/@sentry/core/cjs/index.js' does not provide an export named 'vercelWaitUntil' SyntaxError: The requested module 'node_modules/@sentry/core/cjs/index.js' does not provide an export named 'vercelWaitUntil'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)` |
hi @clinton9ice, thanks for writing in. Do you have a reproduction repo where we could try this out? I tried this out with a fresh nuxt project and the wizard and am not running into this. Could you please paste the output of |
I will try to recreate this when i'm done with work, but i think the version of |
Hey there! Ran into this problem at work today too, got a small reproduction with Nuxt set up: Work code's private, so I had to take out the DSN / project details, but otherwise it should immediately trigger the error when you follow the reproduction steps. During our research, we came across these issues:
Very much suspect it's got something to do with Might be useful, but the reason IITM gave for not being able to wrap that specific file was:
For now we've gotten around it by disabling tracing by setting this property in our Sentry.init({
...
registerEsmLoaderHooks: false,
...
}); Source / Recommendation: https://docs.sentry.io/platforms/javascript/guides/node/install/esm/#troubleshooting-instrumentation Ideally we'd like to use Sentry's tracing functionality, but so far no luck in getting it to work... Will comment again here if something comes up on our end! |
Can you instead try this: Sentry.init({
// other config
registerEsmLoaderHooks: {
onlyIncludeInstrumentedModules: true,
},
}); this should hopefully also fix this. In v9, this will become the default, as it helps prevent issues like these! |
Hey there! Thanks for the fast response! Will try that today! From what I've read in the docs, that only works if Sentry is loaded with the |
Hmm, not 100% sure TBH 🤔 it's at least worth a try! Let us know if that worked for you, we may also adjust docs around this then based on this! |
Perfect, pushing it to our test environment today, will report back! Thanks again! 😄 |
Had to revert that config, we're getting the same error with the other config... Not sure if this is more an |
I think this might be caused by this bug: |
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nuxt
SDK Version
8.47.0
Framework Version
Nuxt 3.15.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Expected Result
running dev server
Actual Result
The text was updated successfully, but these errors were encountered: