Description
The current installation for this library recommends direct import of the styles library as a global CSS file.
However, some frameworks like NextJS forbid this methodology, throwing the following error:
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
(More about this practice in NextJS can be found in this thread).
Is it possible to update the library so that style is automatically injected into the component? I understand why the styles are exported separately (to support themes), but in our case we cannot use the recommended solution of manually exporting the library styles from _app.js
.
In my project's particular case, we are resorting to manually copying the styles from this lib and injecting them in our project location, but this is not ideal, so alternate solutions would be helpful. Thank you!