websanova / vue-auth

A simple light-weight authentication library for Vue.js
MIT License
2.35k stars 383 forks source link

WARNING in ./node_modules/@websanova/vue-auth/dist/v3/vue-auth.esm.js #645

Open goodguydul opened 3 years ago

goodguydul commented 3 years ago

i got this error gambar

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
});
97IreneLai commented 3 years ago

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.

Portunis commented 3 years ago

app.js import VueAuth from '@websanova/vue-auth/dist/v2/vue-auth.esm.js';

LainC156 commented 3 years ago

app.js import VueAuth from '@websanova/vue-auth/dist/v2/vue-auth.esm.js';

this works for me