nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
400 stars 34 forks source link

Parsing error: Unexpected token #50

Closed avxkim closed 5 years ago

avxkim commented 5 years ago
@Component
class Def extends Vue {
  public language: string = 'en'
}

causes an error during compilation: error Parsing error: Unexpected token

We cannot use public, private with nuxt property decorator?

husayt commented 5 years ago

Works for me with Typescript. Are you using JS or TS? If using JS need to add access modifier support in your nuxt project.

husayt commented 5 years ago

@webcoderkz thanks for bring this to our attention. This has been now resolved in latest release