Giter VIP home page Giter VIP logo

Comments (4)

matfish2 avatar matfish2 commented on August 28, 2024

Why are you passing props to a non-component? It seems like your columns prop interferes with the columns array that you are returning.
Also, you need to pass a url prop to the server component.

from vue-tables.

decebal avatar decebal commented on August 28, 2024

sorry @matfish2 , I removed that because I saw no relevance in it. You are right all of thm should be in there and they are in my code.

It's the loading in webpack that's failing and I don't know why or how to reproduce it, just thought that this footprint would suffice if you encountered the problem yourself.

I also tried the basic examples from the Readme file all of them had an issue in the "created" function, with the "options" property.

Thank you for responding so quick.
Do you think you need some more details on this ?

webpack loaders are vue and vue-html

from vue-tables.

matfish2 avatar matfish2 commented on August 28, 2024

I didn't encounter it myself because I am using browserify. So you'll have to figure that one out yourself.

The last error you included - which is the one I was referring to - is not a compiler error, but rather a run-time one. It suggests that your columns prop is undefined.

from vue-tables.

decebal avatar decebal commented on August 28, 2024

Alright so the problem was is the first piece of code I submitted, not sure why it happened, but this is my understanding:

if I defined the prop "columns" without a default it would throw that error, also it would not call the "data" function while having the props defined.

Solution 1: I removed the whole "props" entry from my component definition and it worked.
Solution 2: I moved the logic from "data" to "props" defaults and it worked.

Which one would be recommended ?

from vue-tables.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.