atapas / notifyme

react-notification-timeline is a react based component helps in managing the notification in time-based manner.
https://tapasadhikary.com
MIT License
128 stars 41 forks source link

Global CSS cannot be imported from within node_modules. #12

Open jcoelh0 opened 3 years ago

jcoelh0 commented 3 years ago

This is the output error:

./node_modules/bootstrap/dist/css/bootstrap.min.css Global CSS cannot be imported from within node_modules. Read more: https://err.sh/next.js/css-npm Location: node_modules/react-notification-timeline/index.js

"Reach out to the maintainer and ask for them to publish a compiled version of their dependency." Thanks

jaywcjlove commented 3 years ago

@jcoelh0 I created a nextjs package next-remove-imports to solve the problem.

Example: https://codesandbox.io/s/nextjs-example-react-md-editor-qjhn7?file=/pages/index.js