You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I think it relates to this issue NativeScript/nativescript-cli#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.
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 ",
"readme": "NativeScript Application",
"repository": "",
"nativescript": {
"id": "org.nativescript.demo",
"tns-ios": {
"version": "3.0.0"
},
"tns-android": {
"version": "3.0.0"
}
},
"scripts": {
"build.plugin": "cd .. && npm run build",
"demo.ios": "npm i && npm run build.plugin && tns run ios",
"demo.android": "npm i && npm run build.plugin && tns run android",
"ns-bundle": "ns-bundle",
"publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
"generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install",
"start-android-bundle": "npm run ns-bundle --android --run-app",
"start-ios-bundle": "npm run ns-bundle --ios --run-app",
"build-android-bundle": "npm run ns-bundle --android --build-app",
"build-ios-bundle": "npm run ns-bundle --ios --build-app"
},
"dependencies": {
"nativescript-oauth": "../",
"nativescript-theme-core": "~1.0.2",
"tns-core-modules": "~3.0.0"
},
"devDependencies": {
"babel-traverse": "6.24.1",
"babel-types": "6.24.1",
"babylon": "6.17.0",
"lazy": "1.0.11",
"nativescript-dev-android-snapshot": "^0..",
"nativescript-dev-typescript": "~0.4.0",
"typescript": "~2.2.1",
"nativescript-dev-webpack": "0.7.3",
"webpack": "~3.2.0",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-sources": "~1.0.1",
"copy-webpack-plugin": "~4.0.1",
"raw-loader": "~0.5.1",
"nativescript-css-loader": "~0.26.0",
"resolve-url-loader": "~2.1.0",
"extract-text-webpack-plugin": "~3.0.0",
"awesome-typescript-loader": "~3.1.3"
}
}
The text was updated successfully, but these errors were encountered: