Cordobo / angularx-qrcode

A fast and easy-to-use Angular QR Code Generator library with Ivy support
https://cordobo.github.io/angularx-qrcode/
MIT License
473 stars 126 forks source link

Can't bind to any of the component's inputs #59

Closed TheDevelolper closed 5 years ago

TheDevelolper commented 5 years ago

Not sure why I'm getting this? I followed the instructions and set the target to es5.

I'm using an Angular 8 App here's there error I get:

Can't bind to 'qrdata' since it isn't a known property of 'qrcode'. ("

<qrcode [ERROR ->][qrdata]="myAngularxQrCode" [size]="256" [level]="'M'"></qrcode>"): ng:///AppModule/GeneratorComponent.html@3:8
Can't bind to 'size' since it isn't a known property of 'qrcode'. ("

<qrcode [qrdata]="myAngularxQrCode" [ERROR ->][size]="256" [level]="'M'"></qrcode>"): ng:///AppModule/GeneratorComponent.html@3:36
Can't bind to 'level' since it isn't a known property of 'qrcode'. ("

<qrcode [qrdata]="myAngularxQrCode" [size]="256" [ERROR ->][level]="'M'"></qrcode>"): ng:///AppModule/GeneratorComponent.html@3:49
'qrcode' is not a known element:
1. If 'qrcode' is an Angular component, then verify that it is part of this module.
2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

[ERROR ->]<qrcode [qrdata]="myAngularxQrCode" [size]="256" [level]="'M'"></qrcode>"): ng:///AppModule/GeneratorComponent.html@3:0
    at syntaxError (compiler.js:2409)
    at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:11957)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._parseTemplate (compiler.js:27072)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileTemplate (compiler.js:27059)
    at compiler.js:27002
    at Set.forEach (<anonymous>)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileComponents (compiler.js:27002)
    at compiler.js:26912
    at Object.then (compiler.js:2400)
    at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js.JitCompiler._compileModuleAndComponents (compiler.js:26911)
TheDevelolper commented 5 years ago

Doh 🤦🏽‍♂️! I forgot that I'd re-started the project and forgot to import it in my app module. It was only when I pasted the error and took a second look I realised!

IvRRimum commented 2 years ago

I have this issue, but nothing helps..

TheDevelolper commented 2 years ago

@IvRRimum can you give a little more detail?

"Nothing helps" - what have you tried? Have you checked that you are importing the QR code component in the correct module?

Do you have a repo?

IvRRimum commented 2 years ago

@FacePalmDev Hey, made a new issue: https://github.com/Cordobo/angularx-qrcode/issues/167