JodusNodus / react-qr-reader

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

Build error #130

Open natget21 opened 5 years ago

natget21 commented 5 years ago

there is an error when building the react project while using theis library

EMPAT94 commented 5 years ago

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.

gomesgustavo commented 5 years ago

I'm using react version 16.8.6, the error remains and the fix works.

gomesgustavo commented 5 years ago

The version that acctually works was 2.1.2. What versions we tried:

toanbku commented 4 years ago

Thanks @gomesgustavo, you save my day.