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

TypeError: NFC is not a constructor #20

Closed
abhilash1in opened this issue Jul 28, 2017 · 3 comments
Closed

TypeError: NFC is not a constructor #20

abhilash1in opened this issue Jul 28, 2017 · 3 comments
Labels

Comments

@abhilash1in
Copy link

const { NFC } = require('nfc-pcsc');
const nfc = new NFC();
            ^

TypeError: NFC is not a constructor
@roydejong
Copy link

Check out #12

@pokusew
Copy link
Owner

pokusew commented Jul 31, 2017

Hi @abhilash1in,

you were probably reading docs for master branch (unpublished version), while 0.5.0 was published.

Nevertheless, I have just published 0.6.0 version.
Please upgrade nfc-pcsc to 0.6.0 in your project and it should work without problems, when you require it like you did:

const { NFC } = require('nfc-pcsc');
const nfc = new NFC();

Let me know if everything works as expected. I'll close the issue then. Thanks.

Hope it helps.

@abhilash1in
Copy link
Author

Works great now! Thanks!

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

No branches or pull requests

3 participants