-
Notifications
You must be signed in to change notification settings - Fork 135
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
When using Angular2/TypeScript: TypeError: exists is not a function #11
Comments
I did some research and found out that the It should be fixed when the new release is available on NPM. However, going one step further, this fix will still not make the it work when using AngularCLI/Webpack. To make it work in this scenario we would need to use I did the following change to make it work locally:
Then edited "/node_modules/@pokusew/pcsclite/lib/pcsclite.js" |
Hi @philoliver Thank you for posting your problem. I am quite busy now, but I'll look at it today or tomorrow. |
Hi @philoliver @pokusew |
Updating the node-binding to 1.3.0 does not seem to have solved the issue as @philoliver pointed out. Is there a permanent solution to this problem instead of using gulp because i am a noob and am not familiar with it. |
Hi @dhruv217, I think it should work. Check out Can I use this library in my angular-electron app? in FAQ section of the README. In the linked #24 (comment), there is described what needs to be done in order to make it work. It is related to the angular-electron boilerplate, but I think, that's what you are using in your project https://github.com/dhruv217/shrabik-smart-card-reader. Please let me know, if it works for you. If you encounter any problems feel free to contact me. 🙂 Hope it helps. 🙂 PS Don't forget to star ⭐️ my library, if you find it useful. 😃 Thanks. |
@philoliver thanks for your contribution.
i'm frozen here, dont know how to continue. any idea? |
I facing the similar issue ,any update on this issue ?? |
+1 👍 |
Any updates? |
+1 Uncaught Error: node-loader: |
+1
|
Hi,
I have an Angular CLI project running in Electron. When I follow your instructions and import the module like this
import NFC from '../../../node_modules/nfc-pcsc';
, and callconst nfc = new NFC(minilogger);
, then I get the following error in the console:And during the build process
The text was updated successfully, but these errors were encountered: