Closed yduartep closed 4 years ago
@yduartep seems to be something about the imports. We have changed the library name and some other stuff.
Now you should import the library like the readme explains:
import { NgxQRCodeModule } from '@techiediaries/ngx-qrcode';
Thanks for the answer. I have recently installed this module and imported like you said. But I've got the same error.
@ppRaistlin try to remove node_modules, clean the npm/yarn cache, and install from scratch.
Just got the same error. Tried uninstalling previous version, running npm cache clean --force
and then installing the library again but it didn't work.
Any ideas?
I already removed the node_modules folder, I also removed the package-lock.json, my import is like @rafa-as said but I still having the same error. It's like on any part of the code, it continue using the old name ngx-qrcode2 when generate the library
I'm using this library in our projects without errors, ngx-qrcode2 it's not used anymore.
@yduartep try to add these lines to polyfills.ts https://github.com/techiediaries/ngx-qrcode/issues/52
// Needed by Buffer needed by QRCode
// tslint:disable-next-line:no-string-literal
(window as any)['global'] = window;
Still not working. The error generated is the same also after include those changes in the polyfills.ts file.
I'm having the same issue. Nothing works.
I'm also having this exact same problem. Did anyone find a fix?
same issue here
Hi there, we just published a new 9.1.0 version. Can you check it please?
ok,I tried it and it works @rafa-as thanks for quick update
On Tue, Aug 11, 2020 at 3:42 PM Rafa AS notifications@github.com wrote:
Hi there, we just published a new 9.1.0 https://github.com/techiediaries/ngx-qrcode/releases/tag/9.1.0 version. Can you check it please?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/techiediaries/ngx-qrcode/issues/56#issuecomment-671858488, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR2LGVVJZDGVZZBGGTN5ZLSAEKRLANCNFSM4OJKYTMA .
--
Shrikant Patki [image: https://]about.me/shripatki https://about.me/shripatki?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=plaintext
Thanks @shripatki !
@yduartep @duncan-c @ppRaistlin @jaco-terbraak @L30D3V can you check it, please? Seems to be working the new version.
Closed by #63
I am using angular 8.2.14 and when I try to build my project for prod environment I have an error that was fixed by #15. The problem is that the tag 0.0.8 is not available an when I run the command 'npm install @techiediaries/ngx-qrcode@0.0.8 --save' I receive the error: No matching version found for @techiediaries/ngx-qrcode@0.0.8 and I cannot use the version 9.0.0. So what can I do?
Originally posted by @mautematico in https://github.com/techiediaries/ngx-qrcode/issues/12#issuecomment-364477985
This is part of the error when use 9.0.0:
ERROR in ./node_modules/@techiediaries/ngx-qrcode/ngx-qrcode2.ngfactory.js Module not found: Error: Can't resolve 'ngx-qrcode2' in 'myProject/node_modules/@techiediaries/ngx-qrcode' resolve 'ngx-qrcode2' in 'myProject/node_modules/@techiediaries/ngx-qrcode' Parsed request is a module using description file: myProject/node_modules/@techiediaries/ngx-qrcode/package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration resolve as module looking for modules in myProject/ using description file: myProject/package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration using description file: myProject/package.json (relative path: ./ngx-qrcode2) no extension Field 'browser' doesn't contain a valid alias configuration myProject/ngx-qrcode2 doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration myProject/ngx-qrcode2.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration myProject/ngx-qrcode2.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration myProject/ngx-qrcode2.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration myProject/ngx-qrcode2.js doesn't exist as directory myProject/ngx-qrcode2 doesn't exist myProject/node_modules/@techiediaries/ngx-qrcode/node_modules doesn't exist or is not a directory myProject/node_modules/@techiediaries/node_modules doesn't exist or is not a directory looking for modules in myProject/node_modules using description file: myProject/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration looking for modules in myProject/node_modules using description file: myProject/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration using description file: myProject/package.json (relative path: ./node_modules/ngx-qrcode2) no extension Field 'browser' doesn't contain a valid alias configuration using description file: myProjectpackage.json (relative path: ./node_modules/ngx-qrcode2) no extension Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2 doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2 doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration myProject/node_modules/ngx-qrcode2.js doesn't exist as directory myProject/node_modules/ngx-qrcode2 doesn't exist myProject/node_modules/ngx-qrcode2.js doesn't exist as directory myProject/node_modules/ngx-qrcode2 doesn't exist [myProject/ngx-qrcode2] [myProject/ngx-qrcode2.ts] [myProject/ngx-qrcode2.tsx] [myProject/ngx-qrcode2.mjs] [myProject/ngx-qrcode2.js] [myProject/node_modules/@techiediaries/ngx-qrcode/node_modules] [myProject/node_modules/@techiediaries/node_modules] [myProject/node_modules/node_modules] [myProject/node_modules] [/Users/node_modules] [/node_modules] [myProject/node_modules/ngx-qrcode2] [myProjectnode_modules/ngx-qrcode2] [myProject/node_modules/ngx-qrcode2.ts] [myProjectnode_modules/ngx-qrcode2.ts] [myProject/node_modules/ngx-qrcode2.tsx] [myProjectnode_modules/ngx-qrcode2.tsx] [myProject/node_modules/ngx-qrcode2.mjs] [myProjectnode_modules/ngx-qrcode2.mjs] [myProject/node_modules/ngx-qrcode2.js] [myProject/node_modules/ngx-qrcode2.js] @ ./node_modules/@techiediaries/ngx-qrcode/ngx-qrcode2.ngfactory.js 8:0-34 9:53-71 9:270-288 9:290-308 15:225-243 16:67-85 @ ./src/app/shared/qrcode/qrcode.component.ngfactory.js @ ./src/app/units/unit-detail/unit-detail-data/unit-detail-data.component.ngfactory.js @ ./src/app/units/units.module.ngfactory.js @ ./$$_lazy_route_resource lazy namespace object @ ./node_modules/@angular/core/fesm2015/core.js @ ./src/main.ts @ multi ./src/main.ts ERROR in ./src/app/app.module.ngfactory.js Module not found: Error: Can't resolve 'ngx-qrcode2' in 'myProject/src/app'