Vaadin hilla property call does not exist

97 Views Asked by At

I was trying to create a vaadin hilla application, trying to save a person's details. Created endpoint and the person object as well, but in generated files, the error is showing as below.

[TypeScript] Property 'call' does not exist on type 'PersonDetails'.

The application is running, pages also came up but with error.

@Endpoint
@AnonymousAllowed
public class PersonEndpoint {

    private InterPersonService personService;

    @Autowired
    public PersonEndpoint(InterPersonService personService) {
        this.personService = personService;
    }

    @Nonnull
    public String savePerson(PersonDetails person) {
        return this.personService.savePerson(person);
    }

}

Vaadin hilla application to save a person's details. Expected to set the value from the textbox to the generated object and the data will be available in the endpoint save method.

0

There are 0 best solutions below