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


#1

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

this my coding.
image


#2

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

Same with createFavourite


#3

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


#4

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