louie0086
louie0086
```ts import wasmFile from "../node_modules/@sec-ant/zxing-wasm/dist/reader/zxing_reader.wasm?url"; ``` I would like to ask what the syntax (?url)is? in vue-cli project ```js import wasmFile from "@sec-ant/zxing-wasm/dist/reader/zxing_reader.wasm?url"; ``` it's show error: ``` * a...
Thank @Sec-ant i just put `zxing_reader.wasm` at assets public folder and then ```js setZXingModuleOverrides({ locateFile: (path, prefix) => { if (path.endsWith(".wasm")) { return '/zxing_reader.wasm'; } return prefix + path; },...
> Then this may be some other bug. To solve this problem I'll need more information. > > * **If this issue is OS/browser related** > For example, is the...
> In that case, can you share a repro :) Ok .i send email to you
> @louie0086 Can you try `[email protected]` (matches with `@sec-ant/[email protected]`) and see if this error still exists? If the error still exists, can you find more error information in the console?...
> I added this line of code to log a detailed error information, can you some how see this in the console? > > https://github.com/Sec-ant/barcode-detector/blob/bca5f666062e29a8a4d075f71e4695f9e7fc77c1/src/BarcodeDetector.ts#L156-L157 
> > The RangeError is what we've been seeking. Is that just an empty object or does it hold more information? message:Range consisting of offset and length are out of...
I isolated a stripped down code from my project that is scannable. But the original project still has Range Error and NotSupportedError. https://github.com/louie0086/test_Barcode i used mkcert and `http-server -S -C...
RangeError stack here: https://github.com/louie0086/test_Barcode/blob/5c7a69936a4649c5b860b405b6797ba5aef3456c/public/barcode-detector/dist/es/pure.js#L345-L354 ```js $.HEAP8.set(O, L) ```
> > RangeError stack here: > > https://github.com/louie0086/test_Barcode/blob/5c7a69936a4649c5b860b405b6797ba5aef3456c/public/barcode-detector/dist/es/pure.js#L345-L354 > > ```js > > $.HEAP8.set(O, L) > > ``` > > Thanks, this is very helpful. So the error is thrown...