nuxt-community / nuxt-property-decorator

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

Unexpected token #66

Closed davidquintard closed 4 years ago

davidquintard commented 4 years ago

Hi, i get this error:

image

phamducquanptit commented 4 years ago

i same problem. it simple remove:

parserOptions: {
  parser: 'babel-eslint'
}

in .eslintrc.js

husayt commented 4 years ago

I just released v 2.7.1 of the library which fixes many issues. If your issues still exists please, provide a link to codesandbox with the issue

0xcybertim commented 4 years ago

I had the same issue but it's fixed by using parser: '@typescript-eslint/parser', instead of using parser: 'babel-eslint'. Apperently babel-eslint doesn't support typescript decorators: https://github.com/symfony/webpack-encore/issues/659#issuecomment-544384642