-
Notifications
You must be signed in to change notification settings - Fork 173
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
Got error "Error: useComputedClass must be called within a component setup function." #709
Comments
Probably it's a issue with last version of Vue (3.4), you should be able to use last oruga version with Vue 3.3 |
When I changed from vue-cli-service to vite, and changed from vue3.3 to 3.4, this problem occurred. As a result, the Vue version had no effect, and the error occurred only when the oruga version was changed from 0.8.0 to 0.8.1. |
( #710 is another problem I found during that investigation.) |
Sorry.
So, 3.4 was installed. |
probably same as this one from vue: vuejs/core#9974 |
Hi @digital-codes, thanks for the link. I think the discussion seems very related to this issue. This also helps to understand the problem. My opinion is to wait some time and see how this discussion develops. Otherwise I might have an idea how to refactor the Oruga codebase to maybe prevent this. |
I tried to do some debugging ... not really successfull. However, in the context of the error I get this output: // checking return from function. is null (well, we knew that already, 99.9%) Here comes the error. Note, I've replace the exception with a console.log ... Then there is a warning from vue, which might or might not be related. // this is probably an artifact from not throwing the exception .... Finally a warning from Oruga, which might be a result again from the missing exception ... Maybe this helps at least a bit |
Just to be transparent; I've started on a refactoring for the Before:
To something like:
The Disclaimer: These are early thoughts and experiments, not the final solution yet. |
b/c i was getting an error with 3.4.x as described in oruga-ui/oruga#709
Because of issues like oruga-ui/oruga#709 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Because of issues like oruga-ui/oruga#709 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Overview of the problem
Oruga version: [0.8.1]
Vuejs version: [3.4]
OS/Browser:
Mac/Chrome
Description
When using o-field tag, I see an error.
It worked fine until 0.8.0, but an error occurs with 0.8.1 and 0.8.2.
Steps to reproduce
Reproduce with the following tag from the official document.
Expected behavior
No error occurs
Actual behavior
Got Error
The text was updated successfully, but these errors were encountered: