Bug Report
Description
Next.js does not allow importing global CSS from node_modules, which causes an error when using reactjs-qr-code-reader.
Steps to Reproduce
- Install
reactjs-qr-code-reader in a Next.js project.
- Import
reactjs-qr-code-reader in a component.
- Attempt to run the Next.js application.
Error Message
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
What I've Tried
- Copying the CSS file to the local project and importing it manually.
- Custom Webpack configuration to handle CSS from
node_modules.
Environment
- Next.js version: 14.2.5
- reactjs-qr-code-reader version: x.x.x
Additional Context
Any additional information that might help diagnose the problem.
Bug Report
Description
Next.js does not allow importing global CSS from
node_modules, which causes an error when usingreactjs-qr-code-reader.Steps to Reproduce
reactjs-qr-code-readerin a Next.js project.reactjs-qr-code-readerin a component.Error Message
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
What I've Tried
node_modules.Environment
Additional Context
Any additional information that might help diagnose the problem.