Hello!
I upgraded to ionic version 6 and at coding level everything went very well. Reaching the end of the update of my application, I generated a production version and when accessing the application on my node server, I ran into this error right on the login screen:
For the sake of detail, the error occurred when trying to call the following code:
Generic Alert Statement
const loader = (
mensagem = "Aguarde...",
tipo = "bubbles",
css = "",
id = "loader"
) =>
loadingController.create({
id: id || "loader",
spinner: tipo,
message: mensagem,
translucent: true,
cssClass: css,
backdropDismiss: false
});
Calling this controller at a certain point in the application:
const loading = await loader((reconectar ? 'Validando sessão...' : 'Aguarde...'));
loading.present(); <---error occurs here...
I don’t understand if there was any failure when performing the production build that would have resulted in this problem, as nothing is reported and it is still reported:
Uncaught (in promise) TypeError: (intermediate value)(intermediate value).present is not a function
Help please!
5 posts - 3 participants