jamenamcinteer / react-qr-barcode-scanner

A simple React Component using the client's webcam to read barcodes.
69 stars 71 forks source link

Issue missing directory from node_modules\@zxing\library\src #30

Open stpeyyee opened 2 years ago

stpeyyee commented 2 years ago

I use React version 18.1.0 and this is my code

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 image

How can I fix it ?

jiyojollyk commented 2 years ago

Same issue here

AnwarHossainSR commented 2 years ago

same here.. is there any solution?

Sttp92 commented 1 year ago

Same issue here :( any tip?

vtur commented 1 year ago

You have to install "@zxing/library": "0.18.6". Working for me.