nativescript-oauth
nativescript-oauth copied to clipboard
Error when attempting to run the demo app.
I'm follwing the instructions at the bottom of the page on the link below to clone the repository. All goes well until I attempt to run the demo app on my device by running "tns run android". This is when I get the error below.
d:\GitHub\nativescript-oauth\demo>tns run android Searching for devices... Executing before-prepare hook from d:\GitHub\nativescript-oauth\demo\hooks\before-prepare\nativescript-dev-android-snapshot.js Executing before-prepare hook from d:\GitHub\nativescript-oauth\demo\hooks\before-prepare\nativescript-dev-typescript.js Found peer TypeScript 2.2.2 app/app.ts(13,37): error TS2694: Namespace '"d:/GitHub/nativescript-oauth/demo/node_modules/nativescript-oauth/index"' has no exported member 'ITnsOAuthOptionsOffice365'.
app/app.ts(18,41): error TS2694: Namespace '"d:/GitHub/nativescript-oauth/demo/node_modules/nativescript-oauth/index"' has no exported member 'ITnsOAuthOptionsFacebook'.
Unable to apply changes on device: 52007245b8149495. Error is: TypeScript compiler failed with exit code 1.
d:\GitHub\nativescript-oauth\demo>
The paths all look correct in package.json (see below) file and the tsc command ran with no issues.
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN
I have the same issue
I think it relates to this issue https://github.com/NativeScript/nativescript-cli/issues/3028 Managed to work around the problem by exporting in another file but then ran into this issue. Performing the npm pack work around seems to resolve both.