NextJS: How can I lazy-load third party css?
I want to implement profile image upload for logged-in user with cropping functionality (CropperJS). CropperJS comes with its own css which needs to included in my application. But NextJS only allows to import third party css in <App>
which I really don not want to since this should only get loaded for authenticated users.
Error message from NextJS:
Global CSS cannot be imported from files other than your Custom . Please move all global CSS imports to src/pages/_app.tsx
Do you guys have any solution for this issue?
5262 views