Subscribe on changes!

type: vue thinks props is an array in setup function

avatar
Dec 23rd 2021

Version

3.2.26

Steps to reproduce

declare props, use props in setup

Screenshot (10)

image

image

avatar
Dec 23rd 2021

Can't reproduce. Please follow the issue guidelines and provide a runnable reproduction.

Hint: As this issue is with our IDE, provide additional details about your exact IDE setup, most specifically the Vue plugin(s) you are using.

Bildschirmfoto 2021-12-23 um 17 57 09
avatar
Dec 23rd 2021

Yeah sorry for the quick post. But it also produces a compile error

avatar
Dec 24th 2021

Maybe you should provide a runnable repo😂

avatar
Dec 24th 2021

@LinusBorg Okay this is really weird. Try removing the : any in the isCollapse validator and you will get the bug.

avatar
Dec 24th 2021

I won't type out the whole example by hand again.

If annotating the parameter solves the issue maybe we should document that.