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

fix tsconfig.json in angular demo #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BBazard
Copy link

@BBazard BBazard commented Mar 2, 2021

What is the current behavior?

When running tns build android, there is an error:

ERROR in ../src/tns-oauth-native-view-controller.ts:21:14 - error TS2339: Property 'browser' does not exist on type 'typeof androidx'.

21   ? androidx.browser?.customtabs

I think the error comes from the fact that the typescript file is not compiled into javascript because it is not included in tsconfig.json.

What is the new behavior?

No error.

How to reproduce?

ns --version: 7.0.11
node --version: v12.21.0

git clone https://github.com/BBazard/nativescript-oauth2 --branch fix-angular-demo-android fix
cd fix/demo-angular
tns build android # important
tns debug android

More info

Fixes #134 #141

Include all *.ts files in tsconfig.json and remove the
*.ios.ts and *.android.ts files that were triggering warnings.
Using patterns like **/*.android.ts in "exclude" doesn't work.
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

Successfully merging this pull request may close these issues.

Angular Demo broken on Android after NS7 migration, BUGFIX included in bugreport
1 participant