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

Missing props after upgrade to a.11 #925

Closed
sionzee opened this issue Apr 5, 2020 · 3 comments
Closed

Missing props after upgrade to a.11 #925

sionzee opened this issue Apr 5, 2020 · 3 comments

Comments

@sionzee
Copy link

sionzee commented Apr 5, 2020

Version

3.0.0-alpha.11

Reproduction link

https://jsfiddle.net/fdc0873L/4/

Steps to reproduce

  • Open the link to repo and run it.

What is expected?

To access props defined from createApp();

What is actually happening?

The props are missing after upgrade from a.10 to a.11


I'm able to access the props through ctx.attrs

@sionzee sionzee changed the title Props are empty Missing props after upgrade to a.11 Apr 5, 2020
@mathe42
Copy link
Contributor

mathe42 commented Apr 5, 2020

No Bug: 21bcdec

See also vuejs/rfcs#154

@sionzee
Copy link
Author

sionzee commented Apr 5, 2020

So solution is to define props twice now?

One as interface for typescript and second one for Vue?

@sionzee sionzee closed this as completed Apr 5, 2020
@mathe42
Copy link
Contributor

mathe42 commented Apr 5, 2020

Just add
props: {test: String}
to your options.

Types are automatic.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants