Prop type any throws Vue warn
See original GitHub issueI’m receiving the following error:
[Vue warn]: Invalid prop: type check failed for prop "value". Expected Object, got Number.
@Component({
name: 'ax-select'
})
export default class AXSelect extends Vue {
@Prop() classes: string;
@Prop() items: Array<any>;
@Prop() label: string;
@Prop() value: any;
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Vue.js throws multiple warnings: Invalid prop: type check ...
Vue.js throws multiple warnings: Invalid prop: type check failed for prop "items". Expected Array, got String with value "".
Read more >Props types checking is incorrect - Get Help - Vue Forum
I set type for prop to as RouteLocationRaw | string , but the warning says to me that the prop expected Null |...
Read more >How to test custom prop validators in Vue.js - Vue School Blog
In this article, I will show you how you can test props and custom prop validators in a simple and performant way, without...
Read more >[vue warn]: invalid prop: type check failed for prop - You.com
BlockI don't want to see this, for any search ... :time is Number type, when you send other than a number, Vue throws...
Read more >mdb-vue throw invalid prop when using :to=&quot;{ name
Expected behavior. use named routes in :to bind without errors. Actual behavior. Vue raises warning stating invalid prop type: [Vue warn]: Invalid prop: ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please use the new version v7.0.0.
@grzegorztomasiak in the end, I declare it like this