I get the error described in the title in this situation:
carregarCategorias() {
this.itemService.listarCategorias().then(lista => {
this.categorias = lista.map(categoria => ({ label: categoria.descricao, value: categoria.id }));
})
.catch(erro => this.errorHandler.handle(erro));
}
Does anyone have any tips?