react-qr-reader icon indicating copy to clipboard operation
react-qr-reader copied to clipboard

cant use this library in [email protected]

Open galmalka21 opened this issue 1 year ago • 13 comments

are you going to update the library soon to be able to run in [email protected]?

galmalka21 avatar May 11 '23 08:05 galmalka21

@galmalka21 use --legacy-peer-deps flag while installing this package. It will work with [email protected].

Rehankhalil462 avatar May 19 '23 06:05 Rehankhalil462

For those who are attempting to deploy to Vercel, keep in mind the following steps: Go to Settings > General > Build & Development Settings. Then, override the Install Command by using either npm install --force or npm install --legacy-peer-deps.

dcastillogi avatar May 27 '23 05:05 dcastillogi

Big issue tbh. If someone created a fork to fix this please drop it here. Thanks.

val-samonte avatar Jun 03 '23 16:06 val-samonte

If this is still relevant, there's a similiar version that works (idk if its forked from this one though but it is based on this) https://github.com/kybarg/react-qr-scanner

vbsh123 avatar Jun 26 '23 21:06 vbsh123

Even I need a solution. I migrated ReactJs from 16 to 18. Now react-qr-reader is throwing error.

vairaselvam avatar Jul 07 '23 10:07 vairaselvam

Any solutions?

kelvinCJJ avatar Jul 10 '23 21:07 kelvinCJJ

same

hholmes6 avatar Jul 28 '23 18:07 hholmes6

I have same issue

phanthaiduong22 avatar Aug 08 '23 14:08 phanthaiduong22

"overrides": { "react-qr-reader": { "react": "$react", "react-dom": "$react-dom" } }

You can try this.

Jcoloma13 avatar Aug 17 '23 08:08 Jcoloma13

Just run npm i --legacy-peer-deps react-qr-reader, then in your generated package-lock.json rewrite peerDependencies in node_mobules/react-qr-reader field. Lastly, run npm i. Everything should work. image

adlarionov avatar Aug 29 '23 10:08 adlarionov

Just run npm i --legacy-peer-deps react-qr-reader, then in your generated package-lock.json rewrite peerDependencies in node_mobules/react-qr-reader field. Lastly, run npm i. Everything should work. image

I'm not sure if i'm totally right, but just ignoring dependency issues is not the best way forward. this issue should be fixed

h0jeZvgoxFepBQ2C avatar Oct 24 '23 16:10 h0jeZvgoxFepBQ2C

Just run npm i --legacy-peer-deps react-qr-reader, then in your generated package-lock.json rewrite peerDependencies in node_mobules/react-qr-reader field. Lastly, run npm i. Everything should work. image

I'm not sure if i'm totally right, but just ignoring dependency issues is not the best way forward. this issue should be fixed

Yes, you are absolutly right. I just showed my solution to this problem. It is an issue that should be fixed for sure

adlarionov avatar Oct 26 '23 08:10 adlarionov

if you have react > 17 Use this instead https://www.npmjs.com/package/react-zxing

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

mh-jsx avatar Aug 16 '24 06:08 mh-jsx