Docs
Install

Install

pnpm

pnpm install react-barcode-scanner

yarn

yarn install react-barcode-scanner

npm

npm install react-barcode-scanner

Scaffold

Vite

We recommend using the latest Vite version; if developer's Vite version is lower than 5, please follow this configuration

export default defineConfig({
  optimizeDeps: {
    exclude: ['@preflower/barcode-detector-polyfill']
  }
})

🙏 Thank @louispotok (opens in a new tab) for help to this chapter