Git Product home page Git Product logo

Comments (11)

salimchemes avatar salimchemes commented on August 12, 2024 2

there is a PR with the fix already here
Since it was not merged yet, what I did in the meantime, was add the the component with the fix as part of my app until we have the new version released.

  @ViewChild('bcElement') bcElement: ElementRef; // before
  @ViewChild('bcElement', {static: true}) bcElement: ElementRef; // after

from ngx-barcode.

ZhipengZeng avatar ZhipengZeng commented on August 12, 2024 1

have the same issue

before this angular wrap library got fixed, I use the original js library

npm install jsbarcode --save

import * as JsBarcode from 'jsbarcode';

<svg id="barcode"></svg>

JsBarcode('#barcode', 'your value');

from ngx-barcode.

yobryon avatar yobryon commented on August 12, 2024 1

pr merged. Thank you to @fbjerggaard

As per my note #25 - anyone interested in becoming a collaborator on this project, please msg me.

from ngx-barcode.

yobryon avatar yobryon commented on August 12, 2024 1

@adoyhamboure it took a bit to clean up the build system and get this to compile, but I have gone ahead and published a new version (0.3.0) with this fix for angular 9. I did some quick tests porting the demo app over to angular 9 to be sure it would run against both versions.

Again, thanks to all those who contributed.

from ngx-barcode.

adoyhamboure avatar adoyhamboure commented on August 12, 2024

I have exactly the same issue on Angular 9.0.0
core.js:5828 ERROR TypeError: Cannot read property 'nativeElement' of undefined at NgxBarcodeComponent.push.../../node_modules/ngx-barcode/__ivy_ngcc__/index.js.NgxBarcodeComponent.createBarcode (index.js:91) at NgxBarcodeComponent.push.../../node_modules/ngx-barcode/__ivy_ngcc__/index.js.NgxBarcodeComponent.ngOnChanges (index.js:68)

It's working on another project on Angular 8.2.14

from ngx-barcode.

adoyhamboure avatar adoyhamboure commented on August 12, 2024

@yobryon Could you merge this PR ? That would helps a lot of people !

from ngx-barcode.

adoyhamboure avatar adoyhamboure commented on August 12, 2024

Thank you man ! Maybe you should publish the new release of your package on npm !
I could help on the project if you need, but I don't think there is a lot to add on the project, we just needed a fix for Angular 9 !
Thank you for your efforts @yobryon and thank you @fbjerggaard for the fix !

from ngx-barcode.

pawel-k-kazmierczak avatar pawel-k-kazmierczak commented on August 12, 2024

Hi @yobryon,
I installed version 0.3.0 but unfortunately get the same error.

ng serve
Compiling ngx-barcode : main as commonjs

ERROR in node_modules/ngx-barcode/ngx-barcode.module.d.ts:2:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library (ngx-barcode) which declares NgxBarcodeModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

2 export declare class NgxBarcodeModule {

I tested it at two applications.

from ngx-barcode.

Ankit199 avatar Ankit199 commented on August 12, 2024

Hi Team ,

I am facing below error.
image

it was working fine last few months ..but getting error past 2 days

from ngx-barcode.

Ankit199 avatar Ankit199 commented on August 12, 2024

@Team Waiting for reply to fix issue.

from ngx-barcode.

abdullah37406 avatar abdullah37406 commented on August 12, 2024

Hi Team ,

I am facing below error. image

it was working fine last few months ..but getting error past 2 days

is it solved

from ngx-barcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.