Barcode Generator on click of button

Hi,

I am new to vuejs and trying to implement barcode generator on a click of button using playground environment I have added npm packages as well but it seems like it is not working.

Could anyone guide me in proper workflow to integrate the barcode generator on the click of a button in an app?

Link followed: https://codespots.com/library/item/617

Thanks

Hi @Aman,

vue-barcode library is depricated and it was just a wrapper over JsBarcode library, directly use js library https://github.com/lindell/JsBarcode.

Example: https://jsfiddle.net/Jayesh_v/84509kev/
You can use any of the svg, canvas or img

Hi @Jayesh,

Thanks for your input and I am getting the error now

But I tried including vue also. Not sure what I am doing wrong.

Thanks

Looking at your stacktrace it seems you are using NativeScript Vue. Above library will not work with nativescript. Use nativescript barcode scanner library.

Thanks. Will try.