Next.js Discord

Discord Forum

Global CSS cannot be imported from within node_modules.

Unanswered
wWHYSOSERIOUSs posted this in #help-forum
Open in Discord
im not getting this error im not importing any css

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
getting this error now after adding like
transpilePackages: ['@lifi/widget'],
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)
Thanks man, it works but aoo crashes in production
Ty for help
I really appreciate