SweetAlert2: Unknown parameter "type"

У меня проект на Laravel + Vue. Установил SweetAlert2 через npm. в app.js подключил SweetAlert2

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
require('./bootstrap');

window.Vue = require('vue');



// VueSweetalert2
import VueSweetalert2 from 'vue-sweetalert2';
import 'sweetalert2/dist/sweetalert2.min.css';
Vue.use(VueSweetalert2);



Vue.component('example-component', require('./components/ExampleComponent.vue').default);
Vue.component('dashboard-component', require('./components/Dashboard/MainComponent.vue').default);



const app = new Vue({
    el: '#app',
});

И в своем компоненте пытаюсь вывести alert и toast

run(){
      this.isLoad = true;
      axios.get('/path/to/file.php')
      .then((response) => {

        this.$swal({
          toast: true,
          position: 'top-end',
          showConfirmButton: false,
          timer: 3000,
          type: 'success',
          title: 'Парсинг ',
          text: 'успешно выполнен !',
        });

        /*this.$swal({
          title: 'Успех',
          text: 'Парсинг успешно завершен !'
        });*/

        this.isLoad = false;

      });
    }

В итоге выводится ошибка в консоли : SweetAlert2: Unknown parameter "type"

Ума не приложу что не так, гугл нечего не говорит.

UPD: Если что само уведомление выводится, но без какого-либо тиа, просто голое уведомление.


Ответы (0 шт):