Global CSS cannot be imported from within node_modules.
Unanswered
wWHYSOSERIOUSs posted this in #help-forum
8 Replies
@wWHYSOSERIOUSs im not getting this error im not importing any css
can you try to add it to [
transpilePackages](https://nextjs.org/docs/app/api-reference/next-config-js/transpilePackages) (i remember hearning that allows it to import css)bit i think its best for the package to let you import css anyway
ahh ok then its not a good suggestion then, sorry
aside from getting the package managers to fix it, the best thing i can think of use try to patch it and remove that line and improt on yourown code (sad but i don't know if any other ways)
@wWHYSOSERIOUSs getting this error now after adding like transpilePackages: ['@lifi/widget'],
actually can you try folowing their guide maybe https://docs.li.fi/integrate-li.fi-widget/next.js-compatibility (i see some extra steps)
Thanks man, it works but aoo crashes in production
Ty for help
I really appreciate
I really appreciate