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

prop validator fails to generate validation error message when using Symbols #10519

Closed
thomasleveil opened this issue Sep 15, 2019 · 2 comments · Fixed by #10529
Closed

prop validator fails to generate validation error message when using Symbols #10519

thomasleveil opened this issue Sep 15, 2019 · 2 comments · Fixed by #10529

Comments

@thomasleveil
Copy link

thomasleveil commented Sep 15, 2019

Version

2.6.10

Reproduction link

https://jsfiddle.net/zs5dan7x/

Steps to reproduce

  • pass a Symbol as the value of a component prop which expects another type

What is expected?

the console should show the validation error message

What is actually happening?

the prop validator tries to build an validation error message, it fails with :

TypeError: Cannot convert a Symbol value to a string
@posva
Copy link
Member

posva commented Sep 17, 2019

Marked as a bug because it crashes the application

@amumubuku
Copy link

Symbol('bad').toString()

posva added a commit that referenced this issue Sep 21, 2020
* fix(props): correctly warn when a provided prop is Symbol

Fixes #10519

* style: space before parens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants