I'm using VSCode with Vetur. This is my code:
alert({
title: 'Success!',
message: 'Account created successfully',
okButtonText: 'Okay'
}).then(() => {
console.log('Alert dialog closed!');
})
I get the error Property 'then' does not exist on type 'void' Vetur(2339)
I just follow the instructions in the docs here: https://nativescript-vue.org/en/docs/elements/dialogs/alert/
Any idea what's going on?