Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng2-qrcode does not work with angular-cli prod build #12

Open
deepatr opened this issue Mar 6, 2017 · 1 comment
Open

ng2-qrcode does not work with angular-cli prod build #12

deepatr opened this issue Mar 6, 2017 · 1 comment

Comments

@deepatr
Copy link

deepatr commented Mar 6, 2017

Integrating ng2-qrcode with an angular-cli project gives the below error while running the prod build
ng build --prod

ERROR in Unexpected value 'QRCodeComponent in /../angular-cli/../node_modules/ng2-qrcode/dist/ng2-qrcode.d.ts' declared by the module 'AppModule in /angular-cli/../src/app/app.module.ts'
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'angular-cli/../src'
@ ./src/main.ts 4:0-74
@ multi ./src/main.ts

On raising the issue in angular-cli, I was told that the published ng2-qrcomponent package is outdated. Can this be updated to work with angular-cli?

@Cordobo
Copy link

Cordobo commented Sep 29, 2017

I had the same issue and fixed it for me, let me know, if this works for you too - https://github.com/Cordobo/angularx-qrcode (this is basically a drop-in-replacement of ng2-qrcode with the same APIs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants