I have found the answer: the error was in the types, the post:Post had to be a public type of the type any so: public post: Post | any.Maybe a future viewer can benefit from this, and i thank all of you for reading this!!!