Subscribe on changes!

defineProps dose not work correctly with TypeScript interface extends

avatar
Nov 2nd 2022

Vue version

3.2.41

Link to minimal reproduction

https://sfc.vuejs.org/#__DEV__eNp9kktuwjAQhq8y8iZFgljQdhMlCEoP0AN4k8cE0uKHbAcqRbl7xwktNEgsLGtmPv//eOyObY2JTy2yhKWutI3x4NC3Zi1UI422HnZaGqitlhDFPAQBj4RK+cgTSYFHaY65xxD5dDiT5Fm0jCApsmhFW5lFr9E6HSSISvnfETZno9dC5ib+dFpRN51QAOJScIIlMGRCjvxDLNjBe+MSzltlvvZxqSXfUI3bVvlG4qLScvMcr+KXJa8a52/zMTq5KKw+O7TkKNj8RpxT8oR2YVFVaNE+NJuw/wwntTvT4NkL1dMAfgc7fQc45mqfCRZGEN5EebR1XiJsx3nkkKhWFtSkIiW6AK0r9DZCxR10RXaA354adLCdX/Bygo+qpVbOg7HaOMgAzo0/vGOdt0fvniqsG4UfoZbu1k+zedfPHvyQrhtkelK//Qb9D2Ru4JE=

Steps to reproduce

  1. go to the SFC
  2. open the console
  3. change the version to 3.2.41
  4. change the PRO or DEV

// then you can see the vue will throw an Warning and props will lost value

What is expected?

hope to retrieve all the props that passed in from its parent component

What is actually happening?

except directly defined in the interface property can be retrieved by props , all other extended interface property cannot retrieved by the props

System Info

Linux KusimeROG 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

edge

Any additional comments?

No response

avatar
Nov 2nd 2022

It works fine in the latest commit because this PR had been merged and not released yet, so not working in 3.2.41 yet.

avatar
Dec 1st 2022

meet same issue,waiting new release。。。

avatar
Dec 12th 2022

still having the same issue, version is 3.2.45

avatar
Feb 17th 2023

got the same issue too and using v:3,2,45