You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download the project from the minimal reproduction link (prop type validation is not working correctly in the link, not sure why) and install dependencies, you should see the following error in the file App.vue:
What is expected?
The type of the ref should match the type of the prop and don't cause any errors.
What is actually happening?
The type of the ref doesn't match the type of the prop and causes an error when the type is (or includes) a class with a property that uses the private modifier.
System Info
No response
Any additional comments?
For some reason the error only occurs when using a ref where the type is inferred or passed as a generic argument, when casting the type using Ref or when using computed there doesn't seem to be any errors.
We are similarly experiencing this issue, albeit with reactive(), FWIW. And similarly, the Vue sandbox environment doesn't show the error, but it's there for us locally.
Vue version
3.4.26
Link to minimal reproduction
https://play.vuejs.org/#eNqtU8Fu2zAM/RVOlyRA4gDbsEPqBuiGHrpDV3Q9ChgEh0nd2pIhyUkAw/8+UrYVp9u6HuqLbfI96vGJbMRVVSX7GsVKpC6zeeXBoa8rKJTeXUrhnRRrqfOyMtZDAxa3c8hMWdUeN3O4xy20sLWmhAlVmYyQV/SpiphNlioEEu8mFxHWgW48lhF2CrEuxkqdGe08dAX4yEvWkXbI9VTjoS80nWzMbjKbnTO+KUdiI+8MnylPeFCOWxkqvqD33RJ7aDwePZ3B5RrGBUtTOwwS0mVnKJWjH+qnKpRH+gNIaz4E6Ek/LBbw8Jg7yBQRHaC1xsJiMeRHDq06PXQr0QkpYPlHpYOxz45bwmOFGSt/U7lo07sW7R2LNdNl6D1djgwRc5ozsnyb75InZzQNY8NYKdjwvED7o/I5XYkUKwgZzqmiMIfvIeZtjfMhnj1i9vyX+JM7ckyKO4sO7R6liDmv7A59l77+eYtH+o7J0mzqgtCvJO/RmaJmjR3sa603JHuEC2pvwtTnevfgro8etRuaYqGMbANeCpp8du5frZ/kfko+B57ULbl4vjtv3enXN1XqDW5zjXfWVC5t+qVYRdZ6+p9ZL/J+TpqBnJD4W1UibU9LynkoAujlUEQd1AmNHavNCuXccHYjLbMrm++JA5pKrsB5SwZfdKmwx7bOvLHTcXo2cAE8TXfCOdpvfvXMtntFpQPzRLTkqdUn/ojHd/Frj5bvl7TTJSUfv4j2N6/v0Gc=
Steps to reproduce
Download the project from the minimal reproduction link (prop type validation is not working correctly in the link, not sure why) and install dependencies, you should see the following error in the file
App.vue
:What is expected?
The type of the ref should match the type of the prop and don't cause any errors.
What is actually happening?
The type of the ref doesn't match the type of the prop and causes an error when the type is (or includes) a
class
with a property that uses theprivate
modifier.System Info
No response
Any additional comments?
For some reason the error only occurs when using a ref where the type is inferred or passed as a generic argument, when casting the type using
Ref
or when usingcomputed
there doesn't seem to be any errors.This other issue seems to be related: #10476
The text was updated successfully, but these errors were encountered: