missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.67k stars 835 forks source link

Custom emojis and categories example not working #686

Closed rickstaa closed 2 years ago

rickstaa commented 2 years ago

I just tried the custom emojis and categories example of the README (i.e., https://github.com/missive/emoji-mart#custom-emojis). I, however, keep getting an Exception has occurred: TypeError: Cannot read properties of undefined (reading 'id') error. I tried debugging the emoji-mart code but could not yet find what was causing the error.

Current behaviour

The picker throws an error and removes all other emojis (see video below).

https://user-images.githubusercontent.com/17570430/186978492-b8150998-655e-4839-9ac8-81c72b04425f.mp4

Expected behaviour

The picker should display the custom emojis.

How to reproduce

  1. Clone the example repository https://github.com/rickstaa/custom-emoji-test.
  2. Install the dependencies npm i.
  3. Start the development server npm start
  4. Open localhost:3000.
  5. Click on the OctoCat icon.
  6. See the error appearing and the picker breaking.
rickstaa commented 2 years ago

Amazing thanks! Looking forward to the release.