Closed charliex2 closed 6 years ago
I don't get this error. Could you please make an easy way to reproduce it? For example with a Jsfiddle.
Hi @lindell I am having the same issue using electron-vue. The same error is showing the console. Anyway, I think is a problem with jsbarcode (I am using vuejs 2, ES6, electron). I tried to debug jsbarcode, and all default values are undefined (except explicit props, but svg is not rendering) I will try to reproduce it in jsfiddle.
Hi, @lindell
Sorry, failed to reproduce it in jsfiddle. A quite simple vue project has been pushed to my github. It may be useful for you to reproduce the issue by yarn run dev
.
https://github.com/charliex2/vue-barcode-issue-6
webpack version 3.0.0
Hi @lindell. I have the same problem. However, test.html in vue-barcode folder works perfectly. And if i specify: "import VueBarcode from 'vue-barcode/test'" in my project, the barcodes are generated without any problems.
@lindell I have the same issue also i use electron-vue
https://github.com/lindell/vue-barcode/commit/4f84f2d37e12d3a200126b6e0c10b17b4e55127f should fix this. Can anyone verify it?
@lindell It works. Thanks .
Updated the package in npm now
I was having the same problem, turns out that I was binding a string to the property value
<barcode width="1">
instead of binding the int value
<barcode :width="1">
Quite a lot err in console. And my Code: