Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Error when using Component Decorator #17

Closed
caboe opened this issue Apr 11, 2019 · 3 comments
Closed

Error when using Component Decorator #17

caboe opened this issue Apr 11, 2019 · 3 comments

Comments

@caboe
Copy link

caboe commented Apr 11, 2019

When using the "vue-property-decorator" the following error occurs:
Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead.
Can be fixed by adding this to the .eslintrc.js parserOptions:
{ parserOptions: { ecmaFeatures: { legacyDecorators: true } } }

@outofmemoryagain
Copy link
Collaborator

Now that #22 is merged, this one should be added as part of the base template for eslint.

@frck006
Copy link

frck006 commented Dec 21, 2019

The problem is already here. Not resolved.

@IlCallo
Copy link
Member

IlCallo commented Apr 14, 2020

Can you check if this still happens with latest starter kit update, which officially adds TS support when creating a new project?

@IlCallo IlCallo closed this as completed Oct 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants