avataaars
avataaars copied to clipboard
Uncaught TypeError: Cannot read property 'addStateChangeListener' of undefined

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
Remove the {} around Avatar when you import it so just do => import Avatar from 'avataaars'