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

Vue tells me expected string for prop "glyph", got undefined. #21

Open
lucky13820 opened this issue Jul 18, 2019 · 2 comments
Open

Vue tells me expected string for prop "glyph", got undefined. #21

lucky13820 opened this issue Jul 18, 2019 · 2 comments

Comments

@lucky13820
Copy link

lucky13820 commented Jul 18, 2019

I try to use fa-rating. I followed the doc to import the glyph like so
import {ThumbsUp} from 'vue-rate-it/glyphs/thumbs-up';

But Vue tells me
Invalid prop: type check failed for prop "glyph". Expected String with value "undefined", got undefined

After some trial and error, I figured I should import glyph like this
import ThumbsUp from 'vue-rate-it/glyphs/thumbs-up';

So I guess the doc is wrong.

@filipebafica
Copy link

I was able to fix the import of the star glyph following @lucky13820 solution. Please @craigh411 if possible, change the documentation.

@izidorit
Copy link

I was following the documentation, and was struggleing for hours, starting multiple import method from the documentation, and I would never imagine, that the documentation contains error :\ Thank you for saving my hair from pulling out @lucky13820

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants