JodusNodus / react-qr-reader

React component for reading QR codes from webcam.
https://jodusnodus.github.io/react-qr-reader
MIT License
1.14k stars 407 forks source link

Not compatible with react 18 #374

Open farhataziz opened 6 months ago

farhataziz commented 6 months ago

m ERR! While resolving: demo@0.1.0 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"^18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-qr-reader@3.0.0-beta-1 npm ERR! node_modules/react-qr-reader npm ERR! react-qr-reader@"*" from the root project

Kevinparra535 commented 5 months ago

You need to use npm i -f to be able to use it

mh-jsx commented 3 months ago

Use this instead https://www.npmjs.com/package/react-zxing

Both the libraries are using @zxing/library under the hood.