Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48981

Erro in LoadingController after upgraded to ionic 6

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48981

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>