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

TypeError: this.constructor.argsToParams is not a function when calling "this.$swal.fire()" #84

Closed
rhnchn9 opened this issue Nov 1, 2019 · 3 comments

Comments

@rhnchn9
Copy link

rhnchn9 commented Nov 1, 2019

version: 2.1.4
platform: Mac

I am getting following error message in the console when I am using "this.$swal.fire()":

TypeError: this.constructor.argsToParams is not a function

In earlier version(1.6.4), this used to be working fine before but not now anymore once I updated to the latest version (which is 2.1.4 now).So, I reverted back to the older version.

You can check this in CodeSandbox below:
https://codesandbox.io/s/vue-template-hqsly?fontsize=14

Just click the button "show alert".

Side note: I tried replacing "this.$swal.fire()" to "this.$swal()" and it worked as before but then I have to make changes everywhere in my code.

Please let me know if this can be fixed or I have to assume it's a breaking change.

@Sephster
Copy link

Sephster commented Nov 1, 2019

Seconded. I am getting this as well (on the same version). Platform is Ubuntu

@avil13 avil13 closed this as completed in ccd9211 Nov 1, 2019
@avil13
Copy link
Owner

avil13 commented Nov 1, 2019

fixed in version 2.1.5.

Tnx for issue.

@ghost
Copy link

ghost commented Dec 11, 2019

Upgrading the version to 2.1.5 and changing from using this.$swal() to this.$swal.fire() worked for me

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

3 participants