suprsend / suprsend-react-inbox

SuprSend SDK for integrating inbox functionality in React applications
https://suprsend.com
MIT License
13 stars 0 forks source link

Global CSS cannot be imported from within node_modules #50

Closed atumas-bananamilk closed 3 months ago

atumas-bananamilk commented 3 months ago

What's the issue? We're trying to use your library:

Screenshot 2024-06-10 at 23 12 05

Screenshot 2024-06-10 at 23 03 56

gauravverma commented 3 months ago

@sivaram000 please check this.

sivaram000 commented 3 months ago

Checking..

sivaram000 commented 3 months ago

Hi @atumas-bananamilk The error was happening in nextjs because global styles importing by node_modules is supported in nextjs. (https://github.com/vercel/next.js/issues/19936)

Please upgrade @suprsend/react-inbox to v3.2.0. and add import 'react-toastify/dist/ReactToastify.css' line along with SuprSendInbox component import. https://docs.suprsend.com/docs/inbox-react#integration

Let us know if you face any issue.