Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
goodguydul opened this issue Mar 31, 2021 · 3 comments
Open

Comments

@goodguydul
Copy link

goodguydul commented Mar 31, 2021

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
Copy link

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
Copy link

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

@LainC156
Copy link

LainC156 commented Jul 7, 2021

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

this works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants