Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing async function #3

Open
chiribuc opened this issue Jan 30, 2024 · 0 comments
Open

Missing async function #3

chiribuc opened this issue Jan 30, 2024 · 0 comments

Comments

@chiribuc
Copy link

Hi there,

I've been migrating from vue-snotify to vue3-snotify in my VueJS project and encountered an issue regarding the absence of the expected async function.

Here's a snippet of how the async function was used in the old version:

this.$snotify.async(`Link checking PR #${id}...`, () => new Promise((resolve, reject) => {
  DistributionsRepository.linkCheck(id)
    .then(() => {
      resolve({
        body: 'PR link checked!',
        config: {
          timeout: 2000,
          closeOnClick: true
        }
      });
      this.retrieveReportCounters();
    })
    .catch(() => {
      this.loading = false;
      reject({
        body: 'Error occurred during PR link check!',
        config: {
          timeout: 2000,
          closeOnClick: true
        }
      });
    });
}));

However, when attempting to use this functionality, I encountered the following error:

Uncaught TypeError: this.$snotify.async is not a function

It seems that the async function is missing or not implemented as expected in the current version of the vue3-snotify package.

Could you please provide guidance on this matter or consider addressing it in a future release?
Your assistance in resolving this issue would be greatly appreciated.

Thank you for your time and effort in maintaining this valuable npm package.

Best regards,
Robert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant