Property 'then' does not exist on type 'void'..somebody help

i have error at then when it said "Property ‘then’ does not exist on type ‘void’ "

this my coding.

deleteFavourite isn’t returning a promise, it’s returning void.

Same with createFavourite

how i want to add? can you teach me because i’m still beginner with ionic

You’ll have to ask Google. That’s way above my pay grade

1 Like