Closed bergamin closed 4 years ago
Hi, Have you found solution ?
@anakin59490, no. Except for adding the dependency directly the way I mentioned (which is deprecated), I have not.
They say they are working on a similar problem right now (see #10 last comments), but I expected they would at least have commented something here by now
@bergamin we are working to solve this problem ASAP.
@rafa-as thanks for updating us on this issue
@bergamin we just published a new 9.1.0 version. Can you check it?
Hi @rafa-as ,
here is my result:
@anakin59490 can you provide more information about your environment and error in another issue, please?
Your error doesn't have anything common with the original issue.
With previous version (9.0.0), I had same error as @bergamin : Error: Can't resolve 'ngx-qrcode2'
I have just changed version : 9.1.0 and now I have this mesage (cf picture)
Sorry @anakin59490 I don't saw your previous reply.
Did you removed the node_modules folder and reinstall it? If not, can you try it? What environment you have? Angular8, or 9?
I removed the node_modules and reinstalled it but i get the same error.
I use Angular 6
@rafa-as, it worked for me. Waiting for next issues on my project to try it out on a real environment
@bergamin can you post your package.json please ? It's may be version conflict..
@anakin59490, there you go:
I'm on Angular 8. That could be the issue...
Also, I had a problem when trying the lib out that I don't quite remember what it was about. Not sure if your case, but I solved it by adding this to index.html
:
<script>
if (global === undefined) {
var global = window;
}
</script>
@anakin59490 I don't test the new version with Angular 6 yet. But I'm sure that doesn't work as @bergamin said because the version is not compatible.
Please, can you open a new issue to check the compatibility and create documentation about this?
@bergamin you can check in the readme the solution about your issue: https://github.com/techiediaries/ngx-qrcode#troubleshoots
Closed by #63
As the original issue, it's solved we close this issue. To solve the Angular 6 compatibility open a new issue, please.
This might be related to #10.
I'm getting the following error message when
ng serve
:As suggested in a comment from 2017 in that issue, using
ngx-qrcode2
directly, works.Versions:
Usage (just adding the relevant lines):
package.json
app.module.ts
@NgModule({ imports: [ NgxQRCodeModule, ] })
Thanks