react-qr-reader
react-qr-reader copied to clipboard
Build error
there is an error when building the react project while using theis library
If your react version is 15, then try downgrading react-qr-reader to version 2.0 or 2.1
I got a "Syntax Error" in by bundle.js on version 2.2.1. While it seems to work on 2.1.0, there is dependency on react 16. Haven't got any errors so far in version 2.0, yet to test actual functionality.
If your issue is something else, please post the error you're getting and the steps to reproduce the same.
I'm using react version 16.8.6, the error remains and the fix works.
The version that acctually works was 2.1.2
.
What versions we tried:
- 2.2.1 dont minify, the error happens in the
webrtc-adapter/src/js/utils.js
. We tried to fix, but after fixing with different syntax the 6th error in different declaretions, we leave... - 2.2.0 has a depency error:
Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
- 2.1.2 it works
- 2.1.0 dont read the QRCode,
onScan
always gives a null data
Thanks @gomesgustavo, you save my day.