react-images-upload
react-images-upload copied to clipboard
NextJs incompatibility: Global CSS cannot be imported from within node_modules.
Looks like NextJs is incompat with your module's method for including CSS. I get the following error when attempting to include your package.
Failed to compile
./node_modules/react-images-upload/index.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/react-images-upload/compiled.js
More of an FYI, though. Thanks for contributing to open source, and feel free to close this out if you have no interest in fixing!
Same problem
Importing CSS files within node_modules cannot be supported https://github.com/vercel/next.js/blob/master/errors/css-npm.md
Running into the same issue
Yep, same here. The best solution imo is to simply remove the import from index.js and then require users to import it themselves. This would also enable users to ship their own styles.
https://github.com/uiwjs/react-md-editor/issues/52#issuecomment-848969341
Perfect solution. @sodatat @JohnMealy23