react-input-emoji icon indicating copy to clipboard operation
react-input-emoji copied to clipboard

Could not find a declaration file for module 'react-input-emoji'

Open jeff-pal opened this issue 3 years ago • 2 comments

This lib does not support tsx? I'm trying to use this lib within a React app + Typescript (.tsx). But I'm getting the following error on import:

Could not find a declaration file for module 'react-input-emoji'
 | import InputEmoji from "react-input-emoji";
 |                         ^^^^^^^^^^^^^^^^^^

jeff-pal avatar Jan 30 '22 13:01 jeff-pal

This lib does not support tsx? I'm trying to use this lib within a React app + Typescript (.tsx). But I'm getting the following error on import:

Could not find a declaration file for module 'react-input-emoji'
 | import InputEmoji from "react-input-emoji";
 |                         ^^^^^^^^^^^^^^^^^^

I'm also facing this issue , can you tell me if you solve this or not ?

fixent30 avatar Mar 17 '22 17:03 fixent30

I am facing the same issue.

abhishekram404 avatar May 08 '22 16:05 abhishekram404

same here... is there any plan on adding propoer TS types?

dev-bre avatar Nov 18 '22 16:11 dev-bre

Same issue here but without the use of typescript. How other people are able to use?

[SOLVED] As chatgpt suggested based on the error details from the terminal installing prop-types resolved the issue

npm install prop-types

DocSJ1980 avatar Apr 25 '23 19:04 DocSJ1980

Good news! I've recently added TypeScript support. Please ensure you have the latest version installed. If you've just updated, you might need to restart your TypeScript server (or your IDE) to pick up the new type definitions.

If you're still facing any issues after updating, please let me know. Thanks for using react-input-emoji!

cesarwbr avatar Sep 12 '23 18:09 cesarwbr