Just followed your instructions to install it with yarn, but error break script execution.
To be sure, i've just create-react-app, yarn start, and included:
import CookieBanner from "react-cookie-law";
In that moment recompiled app breaks:
Failed to compile ./src/App.js Module not found: Can't resolve 'react-cookie-law' in 'C:\Users\vicha\workspace\test\reactapp\src'
To reproduce you just need to create new react app, install the module with yarn, and run yarn start importing the package.
Just followed your instructions to install it with yarn, but error break script execution.
To be sure, i've just create-react-app, yarn start, and included:
import CookieBanner from "react-cookie-law";
In that moment recompiled app breaks:
Failed to compile ./src/App.js Module not found: Can't resolve 'react-cookie-law' in 'C:\Users\vicha\workspace\test\reactapp\src'
To reproduce you just need to create new react app, install the module with yarn, and run yarn start importing the package.