在用到 vue-property-decorator 时 vscode提示Parsing error: Using the export keyword between a decorator and a class is not allowed

解决方案:

在.eslintrc.js中修改:

parserOptions: {
    ecmaFeatures: {
      legacyDecorators: true
    }
  }

 

Logo

前往低代码交流专区

更多推荐