2

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

1 Answer 1

3

Try to put the export at the end :

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

export default App
Sign up to request clarification or add additional context in comments.

2 Comments

Is there any solution to use export default?
as i suggested or you could try out export default @component class App extends Vue {...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.