Install
pnpm
pnpm install react-barcode-scanneryarn
yarn install react-barcode-scannernpm
npm install react-barcode-scannerScaffold
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