New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use it in VUE? #118
Comments
Continue the exploration, I commented the duplicated declaration of _classCallCheck, _defineProperties, _createClass & _defineProperty, my project is compiled, but I got another runtime error:
|
The demo project is obsolete - does this not work - https://github.com/mebjas/html5-qrcode/tree/master/examples/vuejs ? |
This project is not a REAL VUE project, I can't make it works. |
I see got it, do you have a reference to your project, let me publish a real Vue project to show how it can be used. |
I've wrtten a demo here: https://github.com/georgewei/html5-qrcode-vue-demo At last, it works. But I still can not use html5-qrcode.min.js directly, I have to use the uncompressed source code and modified it to avoid some compile errors. And I have removed some UI elements to make the scanner looks simple. |
I've read issue 49, the demo project is not a real VUE project, but just some code snippets, and I can not integrate the component named ’qrcode-scanner‘ into my project.
I've try the code as follows:
I got this runtime error:
and I can not find html5-qrcode.min.js in the source map.
Then I changed the code as follows:
But I got this compiling error:
The text was updated successfully, but these errors were encountered: