DEV Warning: type check failed for enum prop #7511
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
scope: compiler
Vue version
3.2.45
Link to minimal reproduction
https://sfc.vuejs.org/#__DEV__eNqVVE1v00AQ/SsjX5xKiU0LXExailAlDiBVAnGpe3DiSTD1fmh3nVIF/3dmduzUbSqkXmzPvjczz29nd598sjbbdZgUyTKgsm0V8KLUAMvPRlngL4DdQpka2/My2VVth2Uiy5edrYleRHARIaLIonByKrXMJ3Up9GvX2ABtpbfEDr5MwGPoLKGNssYF2IPDDfSwcUZBSuLSDwcsqhIgyzlg8YyXem20DxBlwDmXmJ3E9U2n16ExGkTZjBgnsGd5nGFazFqzjatE71mwSCRByTyRvgtV2ey3N5p8iqnlAJD8QorxGmnhuEx+hWB9keedtnfbbG1UfklY7jodGoWL2qjLt9lZ9u59Xjc+TNcz9Gqxcubeo6OOZTKfFM9pcYdu4VDX6ND9t9kz7pOGz7CjptyTrOjJgNHk4wnx2OI6iLxi3H7rjPVZHImf02EpVNeGxrbMGT8Pg9Ro2wUCjI5fsh6bUBtjefck4FncGEfUhrRAo0HQQXJsdIcPA549GdeJyBdBMqZatViP+BiPlEEPwH4PkdBWK2yhJ5+izlykiDfkMJvzuvlH3Sm44kecKKN5kNPTNI5AuDccnXFELelE6IBuU60RrtlzyXk0/mMhpf7G180tDTfBg/MErgyNfqVl5sfTE3eP2tS4aTTGusv4vIiHSUiomnDgXFHgZzfp8V2Q3sr5k6RhnyjvhoXs5aAWkKZz8oKMpM9rEuSR7GDraH3cgQKCo0PdRx8OmfxbGXn0mE9B+iKLvHtkUSAstmRyPQzDN8Md6kCJ/JpcFHwvyeXS009EUhYqt8UAlYcvP759/R51X7WoCIt2s1Ozl6yZS6njG4cHJDy0csLEiPF6sVVdN3pbwOkb+yeWl9SBnvT/AKhB+OM=
Steps to reproduce
Invalid prop: type check failed for prop "modelValue". Expected Null | Array
What is expected?
No warning.
What is actually happening?
enum
null
enum | enum[]
[null, Array]
null
then warningSystem Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: