vue-auth icon indicating copy to clipboard operation
vue-auth copied to clipboard

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

Open goodguydul opened this issue 4 years ago • 3 comments

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
});

goodguydul avatar Mar 31 '21 10:03 goodguydul

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.

97IreneLai avatar Apr 04 '21 11:04 97IreneLai

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

Portunis avatar Jun 15 '21 06:06 Portunis

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

this works for me

LainC156 avatar Jul 07 '21 14:07 LainC156