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.

vue-class-component support

See original GitHub issue

Is vue-class-component support is available? Docs does not have any information about it.

If it is not available, do you have any plans about it?

Things I have tried:

// @vue/component
export default class Comment extends Vue {
  get computedValue () {
    console.log(12)
  }
}

This does not work. However, linting export default {} components works fine. Here’s my full setup: https://github.com/wemake-services/wemake-vue-template

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
armano2commented, Jan 1, 2019

@Alendorff recently i’m fixing issues in https://github.com/JamesHenry/typescript-estree and https://github.com/eslint/typescript-eslint-parser to make it possible, it’s going to take some time but we are on good path

2reactions
michalsnikcommented, Jul 16, 2018

It would require lots of tweaking. AST of Class is different than Object. I didn’t give it a thought yet. But it might be wise to reconsider.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue Class Component: Overview
Vue Class Component is a library that lets you make your Vue components in class-style syntax. For example, below is a simple counter...
Read more >
Vue 3.0 support · Issue #402 · vuejs/vue-class-component
This issue is a question regarding the status of vue-class-component which is aimed for Class-based Typescript users when the Vue3.0 is ...
Read more >
You should be using Vue Class Component
To create a project using Vue Class Component from scratch, you just need to follow Vue CLI steps, make sure to manually select...
Read more >
vue-class-component - npm
ES201X/TypeScript class decorator for Vue components. Latest version: 7.2.6, last published: 2 years ago. Start using vue-class-component in ...
Read more >
From vue-class-component to Composition API
First of all, we want to convert components. Every Vue component in your current codebase is probably a class, marked with @Component ....
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