cesarwbr / react-input-emoji

A React input with an option to pick emojis 😍 😜 😂 😛
https://cesarwbr.github.io/react-input-emoji/
MIT License
121 stars 64 forks source link

Problem with language #56

Closed Methyx closed 7 months ago

Methyx commented 8 months ago

Hello ! Thanks for this wondefull component ! :-) I have a problem with language I have the last version : "react-input-emoji": "^5.6.6", When I try to select language with the Prop language="fr" I have this error in Chrome : Uncaught Error: Dynamic require of "@emoji-mart/data/i18n/fr.json" is not supported

Did I miss something ? Thanks in advance.

cesarwbr commented 7 months ago

Hi @Methyx!

Thank you for reporting the issue with the language prop. The error Uncaught Error: Dynamic require of "@emoji-mart/data/i18n/fr.json" is not supported has been fixed in version 5.6.8.

Please update your package to version 5.6.8 or higher by running:

npm install react-input-emoji@5.6.8

or if you're using Yarn:

yarn add react-input-emoji@5.6.8

After updating, the language prop should work as expected.

If you encounter any further issues, please let us know.

Thanks!

Methyx commented 7 months ago

Great ! Thanks a lot :-)