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 3 compatibility #2131

Closed
lennarddevelop opened this issue Feb 8, 2024 · 4 comments
Closed

Nuxt 3 compatibility #2131

lennarddevelop opened this issue Feb 8, 2024 · 4 comments

Comments

@lennarddevelop
Copy link

💬 Questions and Help

When in Nuxt 3 I want to use the Client. I keep getting the same error: "Class extends value undefined is not a constructor or null."
Here I made a minimal reproduction of the problem. https://stackblitz.com/edit/github-zqjbfo-k8daox?file=app.vue

@JoshMock
Copy link
Member

@lennarddevelop What environment are you running your Nuxt code in? We have an open issue around supporting edge compute environments, so if that's where you're seeing problems, it's because we haven't built support for it yet

@haidertm
Copy link

haidertm commented May 30, 2024

Getting same issue, using nuxt version 3.8.1

image

@matthieuv-chabe
Copy link

still nothing ?

@lennarddevelop
Copy link
Author

I could not make this work. So I skipped it.

Now I just connect to the "client" in the server directory. https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html

Then you can just use useFetch from a component and fetch the elastic data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants