missive / emoji-mart

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

Error: Cannot read property 'name' of undefined (nimble-picker.js:579) #192

Closed nicreichert closed 5 years ago

nicreichert commented 6 years ago

Hello,

Recently my project started having the above mentioned error when I try and render the Picker component.

The component is being rendered by a container that hasn't been changed in weeks, nevertheless it started happening quite out of the blue.

I'm not doing any magic, just simply rendering the Picker like this:

<Picker
  onClick={this.addEmoji}
  style={PickerStyle}
  perLine={9}
  showSkinTones={false}
  title=""
/>

Here's the full error stack:

screen shot 2018-05-21 at 16 23 58

Has anyone seen this before?

Thanks for your help in advance.

pawelsamsel commented 6 years ago

Hey, any luck with this? I have got a similar issue now.

nolanlawson commented 5 years ago

Does this bug still repro in the latest version? Do you have some code to help us reproduce it?

nolanlawson commented 5 years ago

I attempted to reproduce this by pasting the code above into the storybook, but was not able (https://github.com/missive/emoji-mart/commit/26530f4b0c23f559ea8d63104529da910245d587). Does this only happen in dev mode? I wasn't able to find any reference to eval() in nimble-picker.js, but perhaps it's related to a dev mode config.

nolanlawson commented 5 years ago

Closing as this bug might be a duplicate of #201, which is fixed. Please reopen if this still reproduces.

sonipreshita commented 5 years ago

Yes the error is still coming and it is in dev mode and also while using webpack 4. otherwise it is working fine. So any idea with the webpack. @nolanlawson