chatengine-io / react-chat-engine

React component for a cheap and easy chat API
138 stars 35 forks source link

react-chat-engine w/ NextJS #155

Open moonkorea00 opened 1 year ago

moonkorea00 commented 1 year ago

Hey I'm trying to implement the ChatEngineWrapper, Socket and ChatFeed component from react chat engine to my next js project with typescript but it doesn't seem to be found in the module.

any suggestions or alternatives on how to use them from the package?

thanks.

moonkorea00 commented 1 year ago

got it to render by dynamically importing the components.

you'll have to create a type declaration file inside your project directory.

alamorre commented 1 year ago

Yeah sorry react-chat-engine is written in plain JS.

react-chat-engine-advanced is written in TS and has all these features baked in. It’s in the docs too.

On Dec 27, 2022, at 12:28 PM, 문지원 @.***> wrote:

got it to render by dynamically importing the components.

you'll have to create a type declaration file inside your project directory.

— Reply to this email directly, view it on GitHub https://github.com/chatengine-io/react-chat-engine/issues/155#issuecomment-1366159620, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSTYA75EZCKSTMX4SZC3T3WPNGQNANCNFSM6AAAAAATKT2B6I. You are receiving this because you are subscribed to this thread.