vue-auth
vue-auth copied to clipboard
WARNING in ./node_modules/@websanova/vue-auth/dist/v3/vue-auth.esm.js
i got this error

how to solve this?
i'm using laravel 8 and vue 2.6.12 and @websanova latest ver
import 'es6-promise/auto'
import axios from 'axios'
import './bootstrap'
import Vue from 'vue'
import VueAuth from '@websanova/vue-auth'
import VueAxios from 'vue-axios'
import VueRouter from 'vue-router'
import Index from './components/Index'
import auth from './auth'
import router from './router'
window.Vue = Vue
Vue.router = router
Vue.use(VueRouter)
Vue.use(VueAxios, axios)
Vue.use(VueAuth, auth);
axios.defaults.baseURL = `${process.env.MIX_APP_URL}/api`;
Vue.component('index', Index)
const app = new Vue({
el: '#app',
router
});
Hi, I have the same issue as you but I still can't find the solution. I think that the issue maybe is come from here import VueAuth from '@websanova/vue-auth', because if I use import * as VueAuth from '@websanova/vue-auth'; It can solve the 3rd warning but the other two still can't. I was so confused about that.
app.js import VueAuth from '@websanova/vue-auth/dist/v2/vue-auth.esm.js';
app.js import VueAuth from '@websanova/vue-auth/dist/v2/vue-auth.esm.js';
this works for me