-
-
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
Error: The requested module 'vue' does not provide an export named 'computed' #12490
Comments
@vedmant if you set You are also late initializing the SDK, which means you need to follow these docs: https://docs.sentry.io/platforms/javascript/guides/node/install/late-initializtion/ |
Same error for me. Using Adding I'm assuming proper 'Late Initialization' is beter. |
So this means it's an issue with ESM. I'll add it to our current list of items, being tracked here: #12485
We never had real ESM support before with |
When you run When you run |
This should hopefully have been fixed by the numerous PRs recently merged at While we wait for this to be released, there is a patch available that combines all the fixes. If anyone can confirm this patch fixes this issue that would be super helpful! |
I can confirm that the newer versions don't require the workaround anymore. 👌 |
I'm running into this issue in Nuxt, using In my case, it doesn't throw the same error as OP, instead it just hangs indefinitely without throwing any error. Any release >=8.0.0 presents this behavior. The stated workaround does work. |
@sethbrasile could you share how you are initializing the SDK? We have a Nuxt SDK being actively built - please keep an eye on that! #9095 See #12681, that's a PR that shows how to initialize Sentry in the client. You might need to use a similar strategy. |
Hey folks, I am facing the same issue using nuxt but with some notes.
Let know if you need more information to help you fix that, thanks! My env:
|
Hey @bubooon, I'm looking into your issue but I'm struggling to reproduce it since nitro is new to me! Do you have a minimal reproduction I can run? This should probably go in a new issue as it looks like this is a new issue! |
Hey @timfish
add
then run:
Also usefull to look this article Let me know if this didn't help, I should be able to prepare and upload example somewhere on Monday |
I followed the above instructions but don't get any errors at build or runtime. If I set Have you tried removing |
No errors is expected behavior but does it send server errors when they occur to Sentry dashboard? |
Above you said:
I don't get any error logged with the hack is not applied and no errors are sent to Sentry. If you open a fresh issue with a reproduction and details of what you're expecting and what's happening instead, I'll be happy to take a look! |
Ok, I will. But just to clarify, the issue is that the sentry-javascript doesn't send error reports to Sentry servers with that huck applied when u built Nuxt in production mode. |
Putting "globalThis._sentryEsmLoaderHookRegistered = true;" befor Sentry init fixed my issue for now. |
Experiencing the same error while using |
Hey @timfish
|
@bubooon mind opening a new GH issue? That will make sure we can dive into your reproduction case without involving everyone else on this thread. With the newest release of If you upgrade to a fresh install of the latest version of the Node SDK it should use |
Same error here. I added nodeProfilingIntegration to a nitro plugin (in a Nuxt3 project) and I am getting this error when starting the server. |
@TimGuendel could you open a new GH issue and fill out all the details about your app? Ideally attaching a reproduction as well. Thank you! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.9.2
Framework Version
Nuxt Version: 3.12.1
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
Setup Nuxt project with server plugin
Run in dev mode (it works ok for build)
Expected Result
No error
Actual Result
The text was updated successfully, but these errors were encountered: