Argument of type '{}' is not assignable to parameter of type
At the risk of looking really foolish, why the heck is vue-tsc saying it can't assign a literal number to this? There's a component right above it that appears to do the same thing and it doesn't complain about that one
3 Replies
are you calling the component
PanelsNetworkStatsListPanel
anywhere without specitying the prop foobar
?
also, which vue extention are you using in VSCode?Vue - Official
Turns out yes, adding it to the other call fixes things
Thank you for pointing that out
that is because you have it set to required in the prop. If you want to make that optional, set required to false.