EddyVerbruggen / nativescript-gradient

:art: Easily add fancy (or subtle) gradient backgrounds to your views
MIT License
54 stars 6 forks source link

Error when trying to use this plugin #3

Closed RyanSMurphy closed 7 years ago

RyanSMurphy commented 7 years ago

Hi, when trying to use this plugin I get the following error. Do you have any advice on how this can be resolved?

CONSOLE ERROR file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:344:22: Error: Uncaught (in promise): Error: Error in pages/login/login.html:1:3 caused by: Could not load view for: Gradient.TypeError: undefined is not a constructor (evaluating 'new view_1.Property({
        name: "direction",
        defaultValue: "to bottom
EddyVerbruggen commented 7 years ago

Sure, but I'll need your code. Can you share it?

RyanSMurphy commented 7 years ago

Hi this was happening when using nativescript 2, after the upgrade to 3 it didnt happen.

EddyVerbruggen commented 7 years ago

I had a hunch that was the issue but figured this would guard against that.

Thanks for letting me know!

EddyVerbruggen commented 7 years ago

Oh, in case you've created something cool with this plugin don't hesitate to throw a screenshot in this issue, I'd love to see how it's being used in the wild 👍