Closed lonemanotzi closed 4 years ago
@lonemanotzi perhaps running npm run ios | android
might lead you to a better outcome due to the --no-hmr flag that it adds.
it didn't work, same error with --no-hmr flag. Man, this NS upgrade is so bad that every plugin is broken, every component has broken features. this is worse than the angular2 upgrade.
We use quite a few plugins in our App and every single one of them is broken because of the namespace change. Our shared web project is now at ng8 and there is growing pressure to upgrade to ng10.
@NathanWalker: any pointers on how to make the current plugin work with ng10? I see that even plugins that have some of the best NS contributors are still not released an rc version (check nativescript-camera for instance) and your PR is still stuck for almost a month. I tried pulling down the code and locally update the code/dependencies and use the .tgz file in my app. This is giving more errors due to ngcc incompatibility...i am lost...
Can you please try to install latest version of nativescript-ui-listview: 9.0.1 which should work with Angular 10.
@lonemanotzi id be happy to help update your project and get you unblocked if you’d like - send email to support@nativescript.org and if can add me as contributor I can submit you a PR
You can also try using the officially published Angular 10 NativeScript template (you can omit the rc
on that - we updated the blog post to reflect this as well):
nsc create sampleapp --template @nativescript/template-hello-world-ng
I have a working sample generated from that exact command including a modal component sample as well just for quick reference for anyone if helpful: https://github.com/NathanWalker/ns-angular10-modal-sample
Thank you @NathanWalker Trying a new sample app using the command provided.
confirming that latest nsc temaplate and nativescript-ui-listview: 9.0.1 is working for radlist. Thanks @NathanWalker and @mohammadrafigh for tips.
QQ: what is the recommended approach for plugins that are not updated to latest tns version (ie have tns* dependencies)? Is it better to download the source and update the package and use "tns plugin add xxx.tgz" until the plugin owner is releasing a compatible package? I will try to contribute by PR to those plugins, but priority is to get the App updated first.
@lonemanotzi You can custom pack them if in a jam but also please post those which are giving you trouble here as we have updated quite a number of them and are continually doing so everyday. Here's a full list as of right now that have been updated - we will be providing a full list of all those updated at the time of the {N} 7.0 release. As always if one is missed we are happy to help update more plugins. Most of these either have an rc
published or official version. For any still in rc, they are safe to use now and a final version will be published as well with the official {N} 7 release at end of month.
Thanks @NathanWalker . Possible to look at this nativescript-stripe plugin for Ng10? Your (and NS Team) work is outstanding, keep up the good work.
@lonemanotzi yes definitely that one was on a todo already - I'll post a PR to it today 👍
@lonemanotzi @funder7 here's the PR for nativescript-stripe and angular10: https://github.com/funder7/nativescript-stripe/pull/1
Once that's up on the original repo, we'll publish a version out.
@NathanWalker I tried this PR in local and found 2 issues
Any idea how to fix this.
Hi @lonemanotzi, can you pull the last version and rebuild the plugin please?
Apart from that, the CreditCardViewModule
now must be imported with import { CreditCardViewModule } from 'nativescript-stripe/angular';
otherwise you will get that error.
If you have imported the code from the demo-angular project, then the html markup will probably cause some other errors related to UI events (card
element not found). That's a bit strange: if you pull the latest version you will see that the demo-angular project will compile and run without any problems. Those errors are showing only when exporting the sample project code in another application.
A bit of work is still needed, but at least now the plugin seems to work fine ;) Once everything will be fixed, I'll try to find some time to update the documentation too
I tried the demo-angular project by downloading your PR and it is giving the exact same error. Here is what I did. (I tried a whole bunch of other combinations that are present in package.json but all of them failed)
cd src
npm install
cd publish
pack.sh
cd demo-src
tns plugin add nativescript-stripe....tgz
nsc run android
Hi @lonemanotzi try to pull the latest version (just pushed it now), I've tested it, it works...but you cannot do any operation if you don't insert Stripe API keys into the code (check stripe.service.ts
).
You don't need to run pack.sh
when running demo projects, it's required only for publishing the plugin, or testing it into an external project. Probably there are better methods to include the plugin, but I do like that to simulate a real install from the npm repository.
Please pull the latest commit and run:
cd src
npm run clean
cd ../demo-angular
npm run clean
npm run build.plugin
npm run android
let me know
P.S: maybe it's better to continue this discussion here to don't pollute this topic ;)
To reproduce 1.Start a new project by nsc create sampleapp --template @nativescript/template-hello-world-ng@rc