Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stpeyyee opened this issue May 7, 2022 · 4 comments
Open

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

stpeyyee opened this issue May 7, 2022 · 4 comments

Comments

@stpeyyee
Copy link

stpeyyee commented May 7, 2022

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
Copy link

Same issue here

@AnwarHossainSR
Copy link

same here.. is there any solution?

@Sttp92
Copy link

Sttp92 commented Sep 6, 2022

Same issue here :( any tip?

@vtur
Copy link

vtur commented Oct 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants