lindell / lindell/JsBarcode

Exception for invalid barcode

Open
#366 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm using your library from ReactJS.
How can I handle the exception when I provide the barcode value of `1` and the format is `EAN13`?

I keep getting the error: `Error: "1" is not a valid input for e`.

What is the recommended way to handle this?

Contributor guide

Open the contributing guide

Research direction

The issue names no file, test, or entry point. Start by reproducing the EAN13 call with barcode value `1` and inspect how JsBarcode exposes the reported exception; done means documenting or clarifying the recommended handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.