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

Error when attempting to run the demo app. #63

Open
BeMor81 opened this issue Feb 5, 2018 · 2 comments
Open

Error when attempting to run the demo app. #63

BeMor81 opened this issue Feb 5, 2018 · 2 comments

Comments

@BeMor81
Copy link

BeMor81 commented Feb 5, 2018

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"
}
}

@halplayground
Copy link

I have the same issue

@BeMor81
Copy link
Author

BeMor81 commented Feb 7, 2018

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.

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