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
vue.runtime.esm.js?2b0e:619 [Vue warn]: Invalid prop: type check failed for prop "msg". Expected Number with value 4444, got String with value "4444".
found in
---> <HelloWorld> at src/components/HelloWorld.vue
<Home> at src/views/Home.vue
<App> at src/App.vue
<Root>
Vetur: Restart VLS
Info
Problem
Reproducible Case
If you'd like to set type property of each prop value from its type definition, you can use reflect-metadata.
emitDecoratorMetadata
totrue
.reflect-metadata
before importingvue-property-decorator
(importingreflect-metadata
is needed just once.)vue-property-decorator docs
vetur
console
expect msg:number
actual msg:any
tsconfig
The text was updated successfully, but these errors were encountered: