{"action":"created","issue":{"url":"https://api.github.com/repos/matfish2/vue-tables-2/issues/504","repository_url":"https://api.github.com/repos/matfish2/vue-tables-2","labels_url":"https://api.github.com/repos/matfish2/vue-tables-2/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/matfish2/vue-tables-2/issues/504/comments","events_url":"https://api.github.com/repos/matfish2/vue-tables-2/issues/504/events","html_url":"https://github.com/matfish2/vue-tables-2/issues/504","id":318967602,"number":504,"title":"Method \"orderBy\" has already been defined as a data property?","user":{"login":"sergiocastrovale","id":8822036,"avatar_url":"https://avatars3.githubusercontent.com/u/8822036?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiocastrovale","html_url":"https://github.com/sergiocastrovale","followers_url":"https://api.github.com/users/sergiocastrovale/followers","following_url":"https://api.github.com/users/sergiocastrovale/following{/other_user}","gists_url":"https://api.github.com/users/sergiocastrovale/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiocastrovale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiocastrovale/subscriptions","organizations_url":"https://api.github.com/users/sergiocastrovale/orgs","repos_url":"https://api.github.com/users/sergiocastrovale/repos","events_url":"https://api.github.com/users/sergiocastrovale/events{/privacy}","received_events_url":"https://api.github.com/users/sergiocastrovale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-30T17:19:52Z","updated_at":"2018-05-04T22:54:15Z","closed_at":null,"author_association":"NONE","body":"I'm having a very weird issue. I've simplified the usage of the package to its most simple state, the error still happens. Take this example:\r\n\r\n**orders.vue**\r\n\r\n```\r\n<template>\r\n  <div>\r\n    <item-list :dataItems=\"[]\"></item-list>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport itemList from './items'\r\n\r\nexport default {\r\n  components: {\r\n    itemList\r\n  },\r\n  metaInfo: {\r\n    title: 'Order Details'\r\n  }\r\n}\r\n</script>\r\n```\r\n\r\n**items.vue**\r\n\r\n```\r\n<template>\r\n  <v-client-table :data=\"dataItems\" :columns=\"['quantity']\">\r\n  </v-client-table>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n  props: {\r\n    dataItems: Array\r\n  }\r\n}\r\n</script>\r\n```\r\n\r\nWhen I load orders.vue, I get this error: `Method \"orderBy\" has already been defined as a data property`., pointing at `<v-client-table>`. I don't have any method or variable named orderBy in the whole project, so I'm not sure why this is happening. Any thoughts?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/matfish2/vue-tables-2/issues/comments/386754772","html_url":"https://github.com/matfish2/vue-tables-2/issues/504#issuecomment-386754772","issue_url":"https://api.github.com/repos/matfish2/vue-tables-2/issues/504","id":386754772,"user":{"login":"matfish2","id":1510460,"avatar_url":"https://avatars2.githubusercontent.com/u/1510460?v=4","gravatar_id":"","url":"https://api.github.com/users/matfish2","html_url":"https://github.com/matfish2","followers_url":"https://api.github.com/users/matfish2/followers","following_url":"https://api.github.com/users/matfish2/following{/other_user}","gists_url":"https://api.github.com/users/matfish2/gists{/gist_id}","starred_url":"https://api.github.com/users/matfish2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matfish2/subscriptions","organizations_url":"https://api.github.com/users/matfish2/orgs","repos_url":"https://api.github.com/users/matfish2/repos","events_url":"https://api.github.com/users/matfish2/events{/privacy}","received_events_url":"https://api.github.com/users/matfish2/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T22:54:15Z","updated_at":"2018-05-04T22:54:15Z","author_association":"OWNER","body":"> Looks like vue2-filters has an orderBy filter as well, likely causing this bug. I'd expect the orderBy key to be scoped to the module where it's being defined, but that doesn't seem to be the case.\r\n\r\n\r\nThat indeed seems to be the case. On https://github.com/freearhey/vue2-filters/blob/master/src/index.js:20 the author defines a global `orderBy` mixin, which collides with the `orderBy` data property."}}
{"actor":{"display_login":"matfish2"}}