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

错误响应是:[TypeError: cn.refactor.lib.colordialog.PromptDialog is not a constructor]

来自:https ://github.com/NathanWalker/nativescript-fancyalert

我做错什么了吗?

4

1 回答 1

6

我之前遇到过这个问题

尝试rm -rf platforms/android

然后tns run andoid --bundle再次运行

希望这可以帮助!干杯

于 2018-10-14T12:09:40.537 回答