question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Im using classes with Vue to take advantage of TypeScript and because component is typed as Object when it receives the class based component it is a Function this throws a warning(its just a warning so it still works fine).

[Vue warn]: Invalid prop: type check failed for prop "component". Expected Object, got Function

Would be nice to get Function added as an acceptable type. Great library by the way!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Tahulcommented, Mar 12, 2021

Hey @dennmat-hurdle;

Your issue has been fixed by @mediv0, it is availabie in 1.1.1.

I’m closing this right now, feel free to re-open if needed. 👋

1reaction
mediv0commented, Mar 12, 2021

Actually made an RP, to avoid wasting time @Tahul pls check

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue Class Component: Overview
By defining your component in class-style, you not only change the syntax but also can utilize some ECMAScript language features such as class...
Read more >
How To Write Class-Based Components with Vue.js and ...
A class component is a TypeScript class that extends the Vue object. In single-file components, make sure you set the <script> language to...
Read more >
You should be using Vue Class Component
Vue Class Component provides a decorator where we can define the components and the properties of our component, which makes sense, since they ......
Read more >
vuejs/vue-class-component - GitHub
ECMAScript / TypeScript decorator for class-style Vue components. npm Gitpod Ready-to-Code. Document. See https://class-component.vuejs.org.
Read more >
How to use TypeScript to Create Vue Apps with Vue Class ...
Introducing Vue Class Based Components. We can start using class-based components by creating a project with the Vue CLI. To do this, we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found