Closed
Description
Bug report
I can't import a css file from a node_modules
3rd party library as described here (https://nextjs.org/docs/basic-features/built-in-css-support#import-styles-from-node_modules).
This is the error I'm getting:
./node_modules/react-datepicker/dist/react-datepicker.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/@edooking/ui/src/elements/DatePicker/DatePicker.tsx
It seems this was fixed before here #12079, but since I'm able to reproduce the issue again on Next.js 10.0.3
I'm re-opening the issue.
To Reproduce
Try to import a CSS from a 3rd party lib.
Expected behavior
To be able to import css
System information
- OS: macOS
- Chrome
- Version of Next.js: 10.0.3
- Version of Node.js: 14.4.0
- Deployment: vercel