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

Using --bundle no avail #3

Open
jgerryl opened this issue Jul 2, 2018 · 1 comment
Open

Using --bundle no avail #3

jgerryl opened this issue Jul 2, 2018 · 1 comment

Comments

@jgerryl
Copy link

jgerryl commented Jul 2, 2018

Hi @ddfreiling thanks for the great tutorial. I've managed to use deeplink with this tutorial. But i cannot use this when using tns run android --bundle.

There is an error in my bundle saying that all method (e.g. onCreate etc) is protected and can only be accessed by Activity class and all subclasses...

and also i cannot use the lib.core.d.ts in reference.d.ts

@gogoout
Copy link

gogoout commented Nov 13, 2018

@jgerryl The problem is the extend method is overwrite by typescript. I think {N} have include all the helper function since 5.0 although I haven't tested it. You can also try this repo: https://github.com/m-abs/nativescript-tslib

You will need add these to your tsconfig.json

"noEmitHelpers": true,
"importHelpers": false,

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