question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate barcode on Angular2 project

See original GitHub issue

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 image

app.module.ts code: image

Does anyone know how to solve it? Thanks.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
yobryoncommented, May 9, 2017

Check out ngx-barcode… built against angular4 but should work with 2 as well.

3reactions
SanichKotikovcommented, Dec 2, 2017

import * as JsBarcode from 'jsbarcode'; doesn’t work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started with Angular Barcode component - Syncfusion
This section explains you the steps required to create a simple barcode and demonstrate the basic usage of the barcode control.
Read more >
ngx-barcode - npm
An angular component for Angular 4+ for creating 1-D barcodes based on Lindell's JsBarcode. Demo. Basic demo. Features.
Read more >
Angular 2 Barcode Generator - Stack Overflow
I am looking for Angular 2 Barcode Generator for ...
Read more >
How to Create/Generate QR Code in Angular 14 Application
The angular2-qrcode is a component that you can easily integrate into your project. It relies on qrious to generate QR Codes. In modern ......
Read more >
Angular 10|9 Generate/ Create QR Code using angular2 ...
1) Setup Angular CLI · 2) Create a New Angular Application · 3) Install the angular2-qrcode Package · 4) Update App Module ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found