lifinance/widget

Global CSS cannot be imported from within node_modules.

TranSonDinh opened this issue · 1 comments

Bug Reports

./node_modules/@lifi/widget/fonts/inter.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@lifi/widget/index.js

I recommend to not require styles in the core. It should be included by the package consumer.

More info https://github.com/zeit/next.js/blob/master/errors/css-npm.md

@TranSonDinh Hi, I assume you've closed the issue because you found our docs regarding next.js compatibility. We use that CSS for fonts, and yes, we can consider including it separately in the future 🙂