Generate barcode on Angular2 project
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Hi.
I want to use generate a barcode using typeScript and angular2 project.
I've already run `npm install jsbarbode --save ` . After that, I added the reference to the script in **angular-cli.json**
`"scripts": [
"../node_modules/jsbarcode/dist/JsBarcode.all.js"
],`
When I add the module in **app.module.ts** the following error is shown

**app.module.ts** code:

Does anyone know how to solve it?
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the setup from the issue, starting with the npm install command and the scripts entry in angular-cli.json, then inspect the import in app.module.ts. Confirm the exact module error and whether the Angular2 app can load JsBarcode and generate a barcode without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100