We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I used create-react-app (webpack 5). Errors on compilation.
If const {NFC} = require('nfc-pcsc') , then error : Uncaught TypeError: Cannot read properties of undefined (reading 'default') at Object.get [as NFC]
const {NFC} = require('nfc-pcsc')
if
const NFC = require('nfc-pcsc') const nfc = new NFC()
then error : Uncaught TypeError: NFC is not a constructor
How to solve the problem?
The text was updated successfully, but these errors were encountered:
@GABuryan
This module provides access to Smart Cards only from Node.js context. React is context of web browser.
You can not interact with OS Smart Card API directly on machine which uploads your JavaScript in self browser.
User browser need to install some sort of additional 'interface' for this. For example an extension.
Sorry, something went wrong.
No branches or pull requests
I used create-react-app (webpack 5). Errors on compilation.
If
const {NFC} = require('nfc-pcsc')
, then error : Uncaught TypeError: Cannot read properties of undefined (reading 'default')at Object.get [as NFC]
if
then error : Uncaught TypeError: NFC is not a constructor
How to solve the problem?
The text was updated successfully, but these errors were encountered: