Comments (11)
@Sec-ant do you think that comes from barcode-detector
somewhere?
from vue-qrcode-reader.
The error message comes from here: https://github.com/Sec-ant/barcode-detector/blob/fef9ee4fe1868bbe3fdc2983fe452863322ed732/src/BarcodeDetector.ts#L131-L135, I wonder if you can check if there're error messages logged in the dev tools console?
from vue-qrcode-reader.
@Sec-ant This is the error log available to me so far, there is no more information to refer to.
This is all the dependencies configured for the project
"dependencies": {
"core-js": "^3.8.3",
"vue": "^2.6.14",
"vue-qrcode-reader": "^3.2.0",
"vue-router": "^3.6.5"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
"vconsole": "^3.14.6",
"vue-template-compiler": "^2.6.14"
},
from vue-qrcode-reader.
I also had this problem when I tested the scan code on another Android 13 phone,Don't you see how this is related to browser compatibility?
from vue-qrcode-reader.
The Type Error
- Load failed
and Failed to Fetch
both suggest the same cause: The WASM binary cannot be successfully fetched. Would you check the network panel and see if there're failing requests to the zxing_reader.wasm
file? And there should be a reason why the requests failed.
from vue-qrcode-reader.
@Sec-ant This is operated on the mobile terminal of the mobile phone, it seems that you cannot view the relevant content of zxing_reader.wasm, right?
from vue-qrcode-reader.
@Sec-ant This is operated on the mobile terminal of the mobile phone, it seems that you cannot view the relevant content of zxing_reader.wasm, right?
The content of zxing_reader.wasm
is irrelevant here. What I want to say is that when the component is loaded, it has to fetch the zxing_reader.wasm
binary to instantiate the barcode detection module. And from the errors you provided, it seems that the fetch request failed. So I was asking whether you could check the failed requests in the "network" panel in the dev tools? And that may provide us some useful info on why the requests failed.
from vue-qrcode-reader.
@Sec-ant There is loading zxing_reader.wasm,But still reported an error, is it possible that the request status is wrong, I am on the local LAN access
from vue-qrcode-reader.
@Sec-ant I tried to use IOS Safari browser and IOS Google Chrome browser, but I couldn't request to get this zxing_reader.wasm file, and an error was reported after the request failed, but Edge browser can get it normally, I don't know what caused it.
from vue-qrcode-reader.
I know the problem. It's my network
from vue-qrcode-reader.
If you're on a local network and would like to use this component, you'll have to host the zxing_reader.wasm
file on your own server. You can find related info here, or in the repos of barcode-detector
and zxing-wasm
.
from vue-qrcode-reader.
Related Issues (20)
- The automated release is failing 🚨
- CDN download link returns file does not exist HOT 2
- Serious bug(严重的bug) HOT 1
- 版本3.1.9,方法onCameraOn无效,是否含有这个方法?
- 版本3.1.9是否支持formats?如果不支持我应该如何实现? HOT 13
- Scan small DataMatrix HOT 2
- Detect and tracking don't work anymore if choose a camera with constraints HOT 9
- corresponding type declarations HOT 2
- use paused introduce around 1s to 2s of freeze HOT 4
- Feature Request: PDF-Support for Dropzone HOT 4
- reading 'enumerateDevices' is undefined HOT 2
- Are formats available in vue 2? HOT 1
- Unable to read PDF417 Barcodes HOT 2
- Error on installation on Nuxt 3 HOT 1
- Incorrect file extension in "exports" (package.json) HOT 2
- Custom `wasm` file not loading correctly in Nuxt apps HOT 5
- Coponent types missing HOT 3
- TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed. HOT 1
- Unable to switch the camera once selected with the problem camera HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-qrcode-reader.