sergiop / react-giphy-searchbox

Responsive and customizable search and select for Giphy's GIFs and Stickers.
https://sergiop.github.io/react-giphy-searchbox/
MIT License
48 stars 19 forks source link

CSS Modules cannot be imported from within node_modules #45

Closed Asif-chohan closed 3 years ago

Asif-chohan commented 3 years ago

I'm using react-giphy-searchbox with Next.js and Typescript. After installing the lib, the following error is appearing on the screen.

image

After investigating, I came to know that lib is consuming the package source directly, instead of the built package. Don't know how to resolve this issue. Can you please publish a compiled version of this dependency?

sergiop commented 3 years ago

Hi @Asif-chohan this library is based on NWB and CSS Modules depends on it. I need to dig a little into the issue testing the library with Next.js.

I found this, maybe it could help: https://github.com/martpie/next-transpile-modules/issues/95

Asif-chohan commented 3 years ago

Hi sergiop, Thanks for the response. I've applied next-transpile-modules but the problem persists. I've also try @zeit/next-sass and @zeit/next-css but it is going to harm TailwindCSS that I've used for my project.

sergiop commented 3 years ago

@Asif-chohan I just published version 1.5.4 that fix the issue. Let me know if now you can use this component on your project. 😉