horaceho / laravel-nova-agenda

An event calendar built from Laravel Nova Tool
28 stars 7 forks source link

I got this Error #1

Open issour opened 6 years ago

issour commented 6 years ago

Hi Dear, I got this error :

TypeError: this.events.forEach is not a function

Can you help me with that Many thx

issour commented 5 years ago

Hi dear I have resolve this error ! can you tell me why I can't change years and month with the dropdown : see the picture

capture d ecran 2018-11-19 a 17 52 20

thx

yatinB07 commented 5 years ago

@issour

For your first comment,

you got this error because of the URL that you have given with axios.get() in mount() method of Tool.vue is not match with the route that you defined in the nova-components/Agenda/routes/api.php

for example: I set the route like: Route::get('/calender', function (Request $request) { $events = Enquiry::all(); return response()->json($events); });

so in the Tool.vue file the mount method is set like:

mounted() { console.log('mounted()') axios.get('/nova-vendor/agenda/calender').then(response => { this.events = response.data }); console.log(this.events); },


your path have prefix like "/nova-vendor/agenda", you can check the route by the "php artisan route:list" command

thiagovictorino commented 5 years ago

I have the same problema with not showing months and years.

Inspecting que problema I have the following error:

screen shot 2018-12-24 at 16 18 45

This error happened every time that I click on the list of year or month list.

Yelles commented 5 years ago

I have the same problema with not showing months and years.

Inspecting que problema I have the following error:

screen shot 2018-12-24 at 16 18 45

This error happened every time that I click on the list of year or month list.

same error for me, any fix ?

schnettker commented 5 years ago

i have the same problem. Anything new?

jnlll72 commented 5 years ago

Hi, same error, someone has a solution? thanks

m1guelpf commented 5 years ago

Also interested on this

horaceho commented 5 years ago

ant-design-vue calendar runs well as a standalone component:

Edit Vue Antd Template

but got an " Uncaught Error: A DOM element reference is required" in Nova:

agenda-nova

Any help is appreciated.

horaceho commented 5 years ago

There is an alternative implementation using @fullcalendar/vue instead of Ant Design of Vue:

https://github.com/horaceho/laravel-nova-fullcalendar