Closed molaux closed 6 months ago
Does this work for you?
// @ts-expect-error
import BarcodeReader from 'react-barcode-reader/lib/index'
Does this work for you?
// @ts-expect-error import BarcodeReader from 'react-barcode-reader/lib/index'
I got a new error
Uncaught SyntaxError: The requested module '/node_modules/react-barcode-reader/lib/index.js?v=cdab873b' does not provide an export named 'default'
Also tried adding exports [referring to this PR] in the package.json of this lib in the node_modules but getting same error
Was this issue actually fixed and released? I also get this error on version 0.0.2 of the package.
Hello,
I can not use your package with Vite.js since it expects package.json's
"module"
field to be a path to an es module.It should be
"type": "commonjs"
instead I think.This link could be usefull.