Closed samarqhand closed 5 years ago
I'm testing this plugin with NativeScript 6, so try with the NativeScript 6 RC: npm -g nativescript@rc
. And to go back to 5.2 (or whatever you're runningdo
npm -g nativescript@5.2`.
With NativeScript 6, somehow I need to change the following line in app/app.ts:
application.start({ moduleName: 'main-page' });
to
application._start({ moduleName: 'main-page' });
Otherwise I get the following error message:
TS2551: Property 'start' does not exist on type 'typeof import("nativescript-nfc-master/demo/node_modules/tns-core-modules/application/application")'. Did you mean '_start'? Webpack compilation complete. Executing webpack failed with exit code 2.
I’ll update that demo for N6 one day. Btw, start is now run.
Demo has been updated to N6.
I cannot get the demo to run properly, I have tried
npm run demo.android
,tns run android
andtns build android
Both methods seem to work, but produce an error either in the emulator.
my
tns info
-And the error in the emulator