Closed femike closed 5 years ago
I have the same issue with a Typescript app using this plugin. Apparently, occurs during the "after-prepare" hook in nativescript-nfc.js. Since I don't intend to debug the plugin, it probably doesn't really matter, but it would be nice to have a clean transaction from laptop to emulator.
Great plugin, btw. Thank you.
I've seen this same issue with and without the --bundle flag. Try the following:
npm install tns-platform-declarations --save-dev
Then create a new file in the base directory of the project called references.d.ts containing:
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
/// <reference path="./node_modules/tns-platform-declarations/android.d.ts" />
Worked! Thank you Andrew.
Maybe this should be added to the Readme file as it seems to be required.
Hmm, it was not intended to be required, but if it is then I'd be happy to.
Hi, i have a problem with plugin. I was create
tns create nfc-demo
with Angular then install plugintns plugin add nativescript-nfc
Added data to monifest and webpack.config and runtns run android --bundle
don't understand how import android to nfc.android.d.ts