Comments (11)
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.
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.
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.
@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.
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.
@yobryon Could you merge this PR ? That would helps a lot of people !
from ngx-barcode.
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.
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.
Hi Team ,
it was working fine last few months ..but getting error past 2 days
from ngx-barcode.
@Team Waiting for reply to fix issue.
from ngx-barcode.
Hi Team ,
it was working fine last few months ..but getting error past 2 days
is it solved
from ngx-barcode.
Related Issues (20)
- Upgrade to Angular 6 with ngx-barcode not possible, Incompatible peer dependencies HOT 1
- alphanumeric values not generating barcodes HOT 1
- [ngStyle]='barcodeSpecs'
- bc-element-type img cannot be used in ionic 3
- EAN => EAN13
- INVITATION FOR COLLABORATORS HOT 6
- Is it possible to validate barcode ?
- How can i change Width and Height? HOT 1
- Angular 11 possible optimization bailouts HOT 1
- Error after update to Angular 11.2.4 HOT 2
- Ngx-barcode Code 128 randomly cannot read
- Is it possible to remove the hanging down bars at the end of UPC-A barcodes?
- When I am using EAN13 in the format - Showing the blank HOT 1
- Angular 12 update HOT 1
- Need to update Angular Core dependencies HOT 1
- Trying to install for Angular 12 and get an error. HOT 2
- Not working properly on Safari
- Encourage the library authors to publish an Ivy distribution. HOT 2
- Angular v17 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-barcode.