Open stpeyyee opened 2 years ago
I use React version 18.1.0 and this is my code
React version 18.1.0
import React from "react"; import BarcodeScannerComponent from "react-qr-barcode-scanner"; export default function BarcodeScanner() { const [data, setData] = React.useState("Not Found"); return ( <> <BarcodeScannerComponent width={500} height={500} onUpdate={(err, result) => { if (result) setData(result.text); else setData("Not Found"); }} /> <p>{data}</p> </> ); }
When I run npm start I got many errors about no such file or directory on node_modules\@zxing\library\src
npm start
node_modules\@zxing\library\src
How can I fix it ?
Same issue here
same here.. is there any solution?
Same issue here :( any tip?
You have to install "@zxing/library": "0.18.6". Working for me.
I use
React version 18.1.0
and this is my codeWhen I run![image](https://user-images.githubusercontent.com/77266865/167260675-e760063d-88ea-4839-88ba-75c3d35d067a.png)
npm start
I got many errors about no such file or directory onnode_modules\@zxing\library\src
How can I fix it ?