Plugin involved - https://www.npmjs.com/package/sweetalert
Code in main.js
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';
import BootstrapVue from 'bootstrap-vue';
import Vue from 'vue';
import Vuetify from 'vuetify';
import swal from 'sweetalert';
import App from './App';
import router from './router';
Vue.use(BootstrapVue);
Vue.use(Vuetify);
Vue.use(swal);
Error received in browser:
Uncaught SweetAlert: 1st argument ('function Vue (options) {
if ("development" !== 'production' &&
!(this instanceof Vue)
) {
warn('Vue is a constructor and should be called with thenew
keyword');
}
this._init(options);
}') is invalid