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

Error in render: "TypeError: Cannot read property 'filter' of undefined" #261

Closed
hmuhdkamran opened this issue Sep 27, 2018 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@hmuhdkamran
Copy link

hmuhdkamran commented Sep 27, 2018

I have just updated the latest package and it gives me error Error in render: "TypeError: Cannot read property 'filter' of undefined" and Cannot read property 'querySelector' of undefined

@brunokunace
Copy link
Contributor

@hmuhdkamran please get me more details:

  1. how to use vuesax on your project?
  2. the error is on what component?
  3. please print the console.log output
  4. what version have in your package.json

Thanks!

@luisDanielRoviraContreras luisDanielRoviraContreras added the bug Something isn't working label Sep 27, 2018
@hmuhdkamran
Copy link
Author

hmuhdkamran commented Sep 30, 2018

Sorry the error is in vs-table,
I am using the vs-table like
<vs-table :data="data"> <template slot="thead"> <vs-th> Country </vs-th> <vs-th> Currancy </vs-th> <vs-th> Operation </vs-th> </template> <template slot-scope="{data}"> <vs-tr :key="indextr" v-for="(item, index) in data" > <vs-td :data="item.country"> {{item.country}} </vs-td> <vs-td :data="item.cur"> {{dataitem.cur}} </vs-td> <vs-td :data="item.id"> <button @click="edit(item)">Edit</button> <button @click="delete(item)">Delete</button> </vs-td> </vs-tr> </template> </vs-table>
currently I am using v3.4.6 and error that is generated Error in render: "TypeError: Cannot read property 'filter' of undefined" and Cannot read property 'querySelector' of undefined

@brunokunace
Copy link
Contributor

@hmuhdkamran i try to simulate your scenario, look:

https://codesandbox.io/s/qzkj15l52w

one change i made, you set <vs-tr :key="indextr" v-for="(item, index) in data" > but indextr not exists, make sure to use index instead at indextr

@hmuhdkamran
Copy link
Author

hmuhdkamran commented Oct 6, 2018 via email

@luisDanielRoviraContreras
Copy link
Member

Thank you very much for using vuesax in quick updates we are going to add the timepicker and datepicker components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants