Barcode Generator on click of button


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:


Hi @Aman,

vue-barcode library is depricated and it was just a wrapper over JsBarcode library, directly use js library

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.


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.