3
TNSFancyAlert.showSuccess(
    "Success!",
    "Fancy alerts are nice.",
    "Yes they are!",
)
.then(() => {
    console.log("success")
}).catch(err => {
    console.log(err)
})

the err response is: [TypeError: cn.refactor.lib.colordialog.PromptDialog is not a constructor]

From: https://github.com/NathanWalker/nativescript-fancyalert

Did I do something wrong?

vanngoh
  • 626
  • 5
  • 15
Wilson Lau
  • 243
  • 3
  • 8

1 Answers1

6

I met this problem before

Try rm -rf platforms/android

And then run tns run andoid --bundle again

Hope this helps! Cheers

vanngoh
  • 626
  • 5
  • 15