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

not working with angular 6 while importing #47

Open
vamsideepak opened this issue Oct 8, 2018 · 1 comment
Open

not working with angular 6 while importing #47

vamsideepak opened this issue Oct 8, 2018 · 1 comment

Comments

@vamsideepak
Copy link

it is not working with angular 6 and it throwing error while importing like "nfc is not a constructor".

import {NFC} from 'nfc-pcsc' throwing error

ERROR in ./node_modules/bindings/bindings.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\Admin\Desktop\electronapp\node_modules\bindings'
ERROR in ./node_modules/bindings/bindings.js
Module not found: Error: Can't resolve 'path' in 'C:\Users\Admin\Desktop\electronapp\node_modules\bindings'

reason i found fs module will not work with angular 6. by inbuilt nfc containing fs .

because of these reason i accessed nfc from html and i declared in angular 6 component like "declare var NFC: any; "
because of above i am getting nfc is not a constructor

@Canos
Copy link

Canos commented May 3, 2019

@vamsideepak what do you exactly mean for "i accessed nfc from html"

I can't use in a regular Angular 7 application and can't release how do you solve the problem.
Thanks in advance

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

No branches or pull requests

2 participants