laravel-nova-agenda icon indicating copy to clipboard operation
laravel-nova-agenda copied to clipboard

I got this Error

Open issour opened this issue 6 years ago • 9 comments

Hi Dear, I got this error :

TypeError: this.events.forEach is not a function

Can you help me with that Many thx

issour avatar Nov 18 '18 18:11 issour

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

issour avatar Nov 19 '18 17:11 issour

@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

yatinB07 avatar Dec 12 '18 12:12 yatinB07

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.

thiagovictorino avatar Dec 24 '18 18:12 thiagovictorino

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 ?

Yelles avatar Feb 22 '19 08:02 Yelles

i have the same problem. Anything new?

schnettker avatar Mar 22 '19 14:03 schnettker

Hi, same error, someone has a solution? thanks

jnlll72 avatar Apr 25 '19 14:04 jnlll72

Also interested on this

m1guelpf avatar May 02 '19 20:05 m1guelpf

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 avatar Jun 03 '19 09:06 horaceho

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

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

horaceho avatar Jun 18 '19 07:06 horaceho