Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite build fails with withDefaults and props extending from another interface #5613

Closed
jd-solanki opened this issue Mar 22, 2022 · 3 comments
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working scope: compiler

Comments

@jd-solanki
Copy link

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 vitejs/vite#7343

Please refer to the above issue for screenshot and logs

@posva posva added 🐞 bug Something isn't working scope: compiler 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem labels Mar 22, 2022
@posva
Copy link
Member

posva commented Mar 22, 2022

As a workaround add a property to the extended props:

interface SelectProps extends Props {
  _a?: never
}

@juan77
Copy link

juan77 commented Mar 30, 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,

@edison1105
Copy link
Member

Duplicate of
#4498
#5539

@github-actions github-actions bot locked and limited conversation to collaborators Sep 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working scope: compiler
Projects
None yet
Development

No branches or pull requests

4 participants