In my Electron project with Angular CLI, I am attempting to implement NFC functionality by incorporating the @pokusew/pcsclite
library in one of my components. I am using
import * as pcsclite from "../../node_modules/@pokusew/pcsclite"
to import the library. However, when I try to execute this.pcsc = pcsclite()
, I encounter the error message below in the console:
TypeError: exists is not a function
Additionally, I receive the following warning during the build process:
WARNING in ./~/bindings.js
Critical dependency: the request of a dependency is an expression