Comments (12)
maybe you should update "angularx-qrcode": "^1.0.2" to "angularx-qrcode": "1.0.1" in your package.json
from angularx-qrcode.
same issue. 1.0.3 on angular 4.4.7 found version 4 expected version 3.
Oddly it worked for about a minute. tried the modules clear and reinstall, but this seems to be stuck with that bug/warningdifference between working and not was editing a CSS file.
reverted those changes to no effect, very weird.
Same setup as you, I was able to resolve and successfully build by changing from ^1.0.3 to 1.0.1 in the package.json file
After building and importing the module, you'll need to ensure you're using the correct attributes for the 1.x versions. From the docs below:
# Old code in 1.x
<qrcode [qrdata]="'Your data'" [size]="256" [level]="'M'" usesvg="true"></qrcode>
# New code in 2.x or 10.x
<qrcode [qrdata]="'Your data'" [width]="256" [errorCorrectionLevel]="'M'" [elementType]="'svg'"></qrcode>
from angularx-qrcode.
Hi johns24,
this might be fixed by completely removing your node_modules folder and run npm install again on your project.
from angularx-qrcode.
Your @angular/animations is on version 5.x.x and other @angular/ packages are on 4.x.x. All @angular/* packages must be aligned, i.e. have the exact same version number for the app to be able to compile.
your project is 4.x.x , you must install below 1.0.0 version of this weight
from angularx-qrcode.
@Itherma I'm a little bit confused by your comment, I neither see where @johns24 is on 5.x.x in his package.json nor where angularx-qrcode is probably on a worng version. could you please clarify and go into more detail?
from angularx-qrcode.
Closed for now, please reopen if the issue persists.
from angularx-qrcode.
@Cordobo I'm running into this right now with version 1.0.3. I've attached my yarn lock file
from angularx-qrcode.
same issue. 1.0.3 on angular 4.4.7 found version 4 expected version 3.
Oddly it worked for about a minute. tried the modules clear and reinstall, but this seems to be stuck with that bug/warning
difference between working and not was editing a CSS file.
reverted those changes to no effect, very weird.
from angularx-qrcode.
looks like re-running this line fixes it for some period of time:
npm install [email protected] --save
from angularx-qrcode.
ok, a little more detail, running npm start will throw the error.
but if in a different window I run the npm install [email protected] --save
the watcher in the first window will trigger and then recompile correctly.
Note: I also tried the change from ^1.0.3 to 1.0.3 in the package.json file
from angularx-qrcode.
@Cordobo Why is this issue closed, has it been fixed?
from angularx-qrcode.
@utsav-gupta it was closed because it couldn't be reproduced by me and the original author did not a provide a repo where I could reproduce it.
from angularx-qrcode.
Related Issues (20)
- Replace qrcode library to fix commonjs warning HOT 3
- angularx-qrcode > @cordobo/[email protected]: Package no longer supported HOT 1
- QR-Code not displayed in Google Chrome when center image is defined HOT 3
- qrCode not working in dialog window! HOT 4
- [email protected] (Angular v8) should have a callback for returning the url when is created HOT 1
- Accidentally pulling in @types/node HOT 7
- Support for Angular 16 HOT 5
- How many string can [qrdata] hold? HOT 1
- angular 16.1.8 declare var AbortSignal: error HOT 4
- When i scan the QR code the accents are replaced with chinese characters HOT 1
- Is it possible to get the Base64 image string for a QR code in a TS file? HOT 3
- qrcode types missing HOT 7
- When i initialize the QR code,Chrome console show : Uncaught (in promise) SyntaxError: Unexpected token '�', "�PNG
- Support for Angular 17 HOT 8
- Support qrCodeURL (EventEmitter) for 12.0.3 version HOT 1
- Ionic Capacitor NSURLResponse error HOT 2
- Could not find a declaration file for module 'qrcode' HOT 9
- types.ts RGBAColor issue HOT 1
- Warning on Compilation: Dependency on CommonJS 'qrcode' Module Causes Optimization Bailouts HOT 1
- qrcode module is not ESM 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 angularx-qrcode.