CroudTech / vue-fullcalendar

FullCalendar Wrapper for vue
MIT License
483 stars 100 forks source link

Bug: Failed to resolve directive: el #155

Closed kristoff2016 closed 6 years ago

kristoff2016 commented 6 years ago

Hello, I got error: (found in at node_modules\vue-full-calendar\components\FullCalendar.vue) this one: <div v-el:calendar id="calendar"></div>

Any ideas ?

thanks

BrockReece commented 6 years ago

What does your code look like?

kristoff2016 commented 6 years ago

I used like this: <full-calendar :config="config" :events="events"/>

kristoff2016 commented 6 years ago

Because it is error this one: v-el:calendar my vue 2.5.7 thanks

BrockReece commented 6 years ago

Which version of vue-full-calendar are you using? v-el isn't supported in vue 2, so we moved to use v-ref a while ago.

kristoff2016 commented 6 years ago

Hello here is current version: "vue-full-calendar": "^2.6.1"

kristoff2016 commented 6 years ago

Yes, I saw it for this version: <div ref="calendar" id="calendar"></div> But New Error said:
build failed: Error: Couldn't find preset "stage-2" relative to directory "node_modules\\vue-full-calendar"

I followed your instructions everything step by step.

thank you for your help

kristoff2016 commented 6 years ago

capture

BrockReece commented 6 years ago

How about installing babel-preset-stage-2 through npm or yarn?

kristoff2016 commented 6 years ago

Yes, it is fixed by instillation that one xD Thank you!