ESLint Error using Vue Class Component, Vuex-class

Viewed 1154

I'd like to use vuex-class for binding helpers for and vue-class-component

But it says

error Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.

App.vue

@Component
export default  class App extends Vue {
  mounted() {
  ...
  }
}
1 Answers

Try to put the export at the end :

@Component
 class App extends Vue {
  mounted() {
  ...
  }
}

export default App
Related