Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got this Error #1

Open
issour opened this issue Nov 18, 2018 · 9 comments
Open

I got this Error #1

issour opened this issue Nov 18, 2018 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@issour
Copy link

issour commented Nov 18, 2018

Hi Dear, I got this error :

TypeError: this.events.forEach is not a function

Can you help me with that
Many thx

@issour
Copy link
Author

issour commented Nov 19, 2018

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
Copy link

@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
Copy link

thiagovictorino commented Dec 24, 2018

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
Copy link

Yelles commented Feb 22, 2019

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
Copy link

i have the same problem. Anything new?

@jnlll72
Copy link

jnlll72 commented Apr 25, 2019

Hi, same error, someone has a solution? thanks

@m1guelpf
Copy link

m1guelpf commented May 2, 2019

Also interested on this

@horaceho
Copy link
Owner

horaceho commented Jun 3, 2019

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 horaceho added the help wanted Extra attention is needed label Jun 14, 2019
@horaceho
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants