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

Uncaught TypeError: Cannot read property 'addStateChangeListener' of undefined #35

Open
sujanbasnet opened this issue Sep 2, 2020 · 2 comments

Comments

@sujanbasnet
Copy link

Screen Shot 2020-09-02 at 9 28 53 AM

I get the above issue when including the avatar in a package. I'm building the package using create-react-library.

React version: 16.8.6

@johnvehr
Copy link

johnvehr commented Dec 7, 2020

Remove the {} around Avatar when you import it
so just do => import Avatar from 'avataaars'

@lek890
Copy link

lek890 commented Dec 23, 2020

If anyone wants to use an upgraded version where this is solved, here is the fork and package.

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