Coder Social home page Coder Social logo

Comments (12)

carrieXin avatar carrieXin commented on June 24, 2024 2

maybe you should update "angularx-qrcode": "^1.0.2" to "angularx-qrcode": "1.0.1" in your package.json

from angularx-qrcode.

stephen-eas avatar stephen-eas commented on June 24, 2024 1

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.

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.

Cordobo avatar Cordobo commented on June 24, 2024

Hi johns24,

this might be fixed by completely removing your node_modules folder and run npm install again on your project.

from angularx-qrcode.

sunnyxujian avatar sunnyxujian commented on June 24, 2024

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.

Cordobo avatar Cordobo commented on June 24, 2024

@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.

Cordobo avatar Cordobo commented on June 24, 2024

Closed for now, please reopen if the issue persists.

from angularx-qrcode.

jameskleeh avatar jameskleeh commented on June 24, 2024

yarn.txt

@Cordobo I'm running into this right now with version 1.0.3. I've attached my yarn lock file

from angularx-qrcode.

jacksodj avatar jacksodj commented on June 24, 2024

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.

jacksodj avatar jacksodj commented on June 24, 2024

looks like re-running this line fixes it for some period of time:
npm install [email protected] --save

from angularx-qrcode.

jacksodj avatar jacksodj commented on June 24, 2024

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.

utsav-gupta avatar utsav-gupta commented on June 24, 2024

@Cordobo Why is this issue closed, has it been fixed?

from angularx-qrcode.

Cordobo avatar Cordobo commented on June 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.