N
N
nvdfxx2019-03-29 12:57:24
webpack
nvdfxx, 2019-03-29 12:57:24

Is there a problem with the package or with me?

I import packages in main.js, everything was fine until I installed vue-full-calendar, just "Unexpected token import" gives out, if you comment out this import and remove FullCalendar from Vue.use, then everything works,
Repa help, if you need https https://github.com/CroudTech/vue-fullcalendar

import Vue from 'vue'
import axios from 'axios'
import Vuelidate from 'vuelidate'
/* Вот эта строчка все ломает -> */ import FullCalendar from 'vue-full-calendar'
import VueAWN from "vue-awesome-notifications"
require("vue-awesome-notifications/dist/styles/style.css");
require("font-awesome/css/font-awesome.css");

Vue.use(Vuelidate, FullCalendar);

let AWNoptions = {
  position: 'top-right',
  labels: {
    success: 'Успешно',
    alert: 'Ошибка'
  }
  
}

Vue.use(VueAWN, AWNoptions)

console.log which doesn't explain anything
spoiler
5c9dec4393113309044203.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question