ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

Error in render function #153

Closed ahmedfaical closed 7 years ago

ahmedfaical commented 7 years ago

Hello i'm changing your package to get a timeline like a vuetable, i get it work but i get this error and pagination don't work i get "No relevant data" inside of pagination links I get this errors in console

profile.js:3115 [Vue warn]: Error in render function: 
(found in <Timeline> at /Applications/MAMP/htdocs/myWebsite/node_modules/vuetable-2/src/components/Timeline.vue)
warn @ profile.js:3115
handleError @ profile.js:3996
Vue._render @ profile.js:6083
updateComponent @ profile.js:4658
get @ profile.js:4977
run @ profile.js:5047
flushSchedulerQueue @ profile.js:4841
(anonymous) @ profile.js:3011
nextTickHandler @ profile.js:2960
profile.js:4000 TypeError: Cannot read property 'type' of undefined
    at VueComponent.getLogType (profile.js:34832)
    at Proxy.boundFn (profile.js:2672)
    at userProfile.js:35011
    at Proxy.renderSlot (profile.js:5892)
    at userProfile.js:35079
    at Proxy.renderList (profile.js:5857)
    at userProfile.js:35068
    at Proxy.renderList (profile.js:5857)
    at Proxy.render (profile.js:35054)
    at VueComponent.Vue._render (profile.js:6081)
ratiw commented 7 years ago

@leonfather It looks like the error was not directly caused by Vuetable, but it was coming from getLogType. Check it carefully.

The question seems to be related to Vuetable-2, so I'm going to close this. Please post it to Vuetable-2 instead.