Closed wattsie closed 5 years ago
Hi. How works other imports?
Looks like you have trouble with babel
Strange, if I just use 'sweetalert2' and not the 'vue-sweetalert2' module
yarn add sweetalert2
import Swal from 'sweetalert2'
Then as a method call the following all works.
methods: {
test () {
Swal.fire('Hello world!')
}
},
Alerts work as expected...
Weird.
Thanks anyway, got back to native sweetalert2. Cheers.
@wattsie sorry couldn't help
Hi All, Just started playing with vue-sweetalert2 and run into an issue.
Any suggestions would be much appreciated?
In my renderer main.js I do the import, yet I can't even try to use it, as it fails to import.
When running, I get the following:
Here are the versions I am using for reference.