davecoffin / nativescript-filterable-listpicker

Apache License 2.0
44 stars 22 forks source link

Issue with running Demo app. #39

Closed GeorgeRXia closed 5 years ago

GeorgeRXia commented 5 years ago

Make sure to check the demo app(s) for sample usage

Can you point me an nativescript angular example?

Make sure to check the existing issues in this repository

Checked

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

For Angular, I am having trouble running the plugin and getting access issue described below. This also occurs when I try to run the Demo App.

Which platform(s) does your issue occur on?

When I run the demo app i get this error:

Unable to apply changes on device: 04157df4e07b5b08. Error is: { "error": "unregistered users are not allowed to access package tns-android" }

This also occurs when I try to also use an Angular App. I use the command tns debug android to run it.

davecoffin commented 5 years ago

That error has nothing to do with this plugin.

GeorgeRXia commented 5 years ago

Hey Dave You are right I found out my npm registry was going to a private one. I was hoping you can still point me to an angular example for this package. I am getting a new error of FilterableListpicker.Error: com.tns.NativeScriptException: Failed to find module: "nativescritns pt-filterable-listpicker", relative to: app/tns_modules/

if you want I can open a new issue and close this one.

davecoffin commented 5 years ago

All the angular instructions are right in the Readme. Based on your error I would guess you skipped the part where it explains you must add this to your app.component:

import {registerElement} from "nativescript-angular/element-registry";
registerElement("FilterableListpicker", () => require("nativescript-filterable-listpicker").FilterableListpicker);

Follow the angular instructions and youll be fine.

GeorgeRXia commented 5 years ago

Thank you, I just solved it too. I didn't skip it but for some reason when i copied pasted it was registerElement("FilterableListpicker", () => require("nativescritns pt-filterable-listpicker").FilterableListpicker);

Going to close this. Thank you for taking the time