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

[Nuxt] fire is not a function #121

Closed
mushonnip opened this issue Dec 10, 2020 · 1 comment
Closed

[Nuxt] fire is not a function #121

mushonnip opened this issue Dec 10, 2020 · 1 comment

Comments

@mushonnip
Copy link

I import the lib
import Swal from 'vue-sweetalert2/nuxt'
and got this error while using Swal.fire()
vue_sweetalert2_nuxt__WEBPACK_IMPORTED_MODULE_7___default.a.fire is not a function

@galaczi
Copy link

galaczi commented Dec 12, 2020

You should use it like this:

this.$swal('Hello Vue world!!!');

avil13 added a commit that referenced this issue Jan 28, 2021
@avil13 avil13 closed this as completed Jan 28, 2021
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