Closed mahieyin-rahmun closed 2 years ago
Yeah this is an issue with the NextJS framework on Chat Engine. I'll be looking for ways to be compatible with other frameworks in the coming month or so
Hey everybody 👋 Simple hack, but I put together nextjs-chat-engine
It's a workaround where you pull in the component then import require('react-quill/dist/quill.snow.css'); separately.
Please let me know if this helps y'all out, enjoy 🎉
Hey everybody, just a heads up I'm learning NextJS now and plan on supporting it formally this month 👍 👍
https://github.com/chatengine-io/react-chat-engine/issues/95 for visibility
Hi, I am trying to use
react-chat-engine
in a Next.js app. The library itself is awesome, however, I keep getting the following error:Here's my
Chat
component(chat.tsx)
:If I comment out the following line in
node_modules/react-chat-engine/dist/index.modern.js
, (Corresponding line in the repository) it works once I delete the.next
folder and rebuild.Obviously, I cannot do this in production so I would like to have a better solution. Thank you for the library and the effort that you put into it.
package.json