react-qr-barcode-scanner
react-qr-barcode-scanner copied to clipboard
Hi all guys , i got problem " ReferenceError: window is not defined " . How can i fix it . Thank all guys . I used react and nextjs for my project
use this should solve it
import dynamic from "next/dynamic"
const BarcodeScannerComponent = dynamic(
() => import("react-qr-barcode-scanner"),
{ ssr: false }
)
thank fouad1998