Skip to content
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

ITF-14 TypeError #424

Open
frankykubo opened this issue Jan 26, 2023 · 3 comments
Open

ITF-14 TypeError #424

frankykubo opened this issue Jan 26, 2023 · 3 comments

Comments

@frankykubo
Copy link

Hello,

I want to make ITF-14 barcode. Here is my code:

JsBarCode('#test', '9007901', {
        format: 'ITF-14',
        lineColor: '#0aa',
        width: 4,
        height: 40,
        displayValue: false,
});

Result is javascript error:

Uncaught (in promise) TypeError: api.options(...)[options.format] is not a function
    at JsBarcode2 (JsBarcode.js:76:38)

The 76th line of JsBarCode.js:

api.options(options)[options.format](text, options).render();
@frankykubo
Copy link
Author

frankykubo commented Jan 26, 2023

Probably related to #400 as I render 2 barcodes

@frankykubo
Copy link
Author

I tried to remove other barcode from page but error remains.

@LenoM
Copy link

LenoM commented Oct 5, 2023

The same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants