Subscribe on changes!

vite build fails with withDefaults and props extending from another interface

avatar
Mar 22nd 2022

Version

3.2.31

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Let vue compile the code

What is expected?

It should compile and run

What is actually happening?

Throwing error


I already raised this in vite https://github.com/vitejs/vite/issues/7343

Please refer to the above issue for screenshot and logs

avatar
Mar 22nd 2022

As a workaround add a property to the extended props:

interface SelectProps extends Props {
  _a?: never
}
avatar
Mar 30th 2022

Hi, good night!

I have the same issue, but is also ignoring when extending more than one interface.

interface OneProps { ... }
interface TwoProps { ... }
interface ThreeProps { ... }

interface MyProps extends OneProps, TwoProps, ThreeProps {};

My two cents,

avatar
Mar 31st 2022

Duplicate of #4498 #5539