-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
After upgrading to vuejs version 3.4, I see the message useComputedClass must be called within a component setup function.
#10001
Comments
There is also a Stackoverflow question seeing this same error with other code. What is in common is, that it also uses Oruga. Might be related to this as well. |
This is the reason for oruga. I followed the writing method of |
relate:#9974 |
this is related to oruga, not vue. author must fix his library use-hooks |
I've added a warning if The usage is incorrect and should be fixed in |
Vue version
3.4.0 - 3.4.5
Link to minimal reproduction
https://github.com/homagix/homagix-frontend
Steps to reproduce
git clone https://github.com/jschirrmacher/homagix-frontend.git
npm i vue@3.4.5
npm run test:unit
What is expected?
Executing the unit tests should succeed.
What is actually happening?
When tests are run with vuejs 3.3.13, all works well.
After upgrading to vue 3.4.0 (or 3.4.5), I get an error message
useComputedClass must be called within a component setup function.
and before that a warning (which I don't know if that is related):
Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core
Downgrading to vue 3.3.13 lets the tests succeed again, so it seems to be related to this release.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: