Wanderxx / vue-fullcalendar

vue calendar fullCalendar. no jquery required. Schedule events management
https://wanderxx.github.io/vue-fullcalendar/
1.51k stars 387 forks source link

Problem with calendar displaying #23

Closed Alex-Sokolov closed 7 years ago

Alex-Sokolov commented 7 years ago

Can you help please :) something wrong again: -29-12-2016-1

That's when I include like this

import fullCalendar from 'vue-fullcalendar';

No errors in console

Trying to find problem. Set including like this

import fullCalendar from 'vue-fullcalendar/src/fullCalendar.vue';

There is error in console:

Uncaught (in promise) ReferenceError: defMonthNames is not defined
    at Object.format (eval at 809 (chunk.14.7d0cbdbb.js:28), <anonymous>:53:32)
    at VueComponent.dispatchEvent (eval at 811 (chunk.14.7d0cbdbb.js:44), <anonymous>:82:78)
    at VueComponent.boundFn [as dispatchEvent] (eval at 6 (chunk.0.ab20a1a7.js:350), <anonymous>:127:12)
    at VueComponent.created (eval at 811 (chunk.14.7d0cbdbb.js:44), <anonymous>:26:10)
    at callHook (eval at 6 (chunk.0.ab20a1a7.js:350), <anonymous>:2610:19)
    at VueComponent.Vue._init (eval at 6 (chunk.0.ab20a1a7.js:350), <anonymous>:3366:5)
    at new VueComponent (eval at 6 (chunk.0.ab20a1a7.js:350), <anonymous>:3485:12)
    at createComponentInstanceForVnode (eval at 6 (chunk.0.ab20a1a7.js:350), <anonymous>:2761:10)
    at init (eval at 6 (chunk.0.ab20a1a7.js:350), <anonymous>:2771:31)
    at createComponent (eval at 6 (chunk.0.ab20a1a7.js:350), <anonymous>:4122:9)

If change const defMonthNames = [ to var defMonthNames = [ all works again.

What I'm doing wrong?

P.S.: Using

suitedjimster commented 7 years ago

same thing here. something to do with the upgrade of vue@2.1.8

lunfel commented 7 years ago

I had the same problem. I cloned the whole repo and ran npm run build from the root to rebuild the dist files. I manually copied and pasted the built dist files into my project and everything was fine.

It seems like the dist files in the repo for 1.0.7 have not been rebuilt since.

Hope this helps

Wanderxx commented 7 years ago

Hi there,

Just tried vue@2.1.8 and all goes well, I also did a rebuild for 1.0.8. Hope your guys' problem all has gone.

dotob commented 7 years ago

hi,

sorry but a have the described problem with vue 2.1.8 and vue-full-calendar 1.0.8. what informations do you need?

sebastian

lunfel commented 7 years ago

@Wanderxx Can you version using tags? I think the versioning will be more explicit that way and less prone to errors.

git tag 1.0.8 or git tag v1.0.8 git push --tags

Wanderxx commented 7 years ago

@lunfel Sure I would do that.