EddyVerbruggen / nativescript-pluginshowcase

An app I'm using to showcase a bunch of NativeScript plugins (also in the appstores!)
https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1281334006
MIT License
175 stars 48 forks source link

iOS and Android not building #20

Open NickAtGit opened 6 years ago

NickAtGit commented 6 years ago

Hi Eddy, I'll get this when I build iOS and Android:

app/feedback/helpers/cfalertdialog-helper.ts(54,11): error TS2322: Type '{ dialogStyle: CFAlertStyle.BOTTOM_SHEET; title: string; message: string; buttons: [{ text: strin...' is not assignable to type 'DialogOptions'. Types of property 'buttons' are incompatible. Type '[{ text: string; buttonStyle: CFAlertActionStyle.POSITIVE; buttonAlignment: CFAlertActionAlignmen...' is not assignable to type '[{ text: string; buttonStyle: CFAlertActionStyle; buttonAlignment?: CFAlertActionAlignment; textC...'. Types of property 'length' are incompatible. Type '2' is not assignable to type '1'.

EddyVerbruggen commented 6 years ago

I know, I'm waiting for this PR to be merged: https://github.com/shiv19/nativescript-cfalert-dialog/pull/8

In the meanwhile, I just hack the typings file in the node_modules folder according to that PR.

NickAtGit commented 6 years ago

Ok, thanks. Can you tell me how to fix it for now?

EddyVerbruggen commented 6 years ago

I kinda did. Look at the PR and change that in node_modules. Then remove the platforms folder and build.