Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): 'jsx, flow, typescript' (23:6) #20

Open
cklwblove opened this issue Nov 16, 2021 · 1 comment

Comments

@cklwblove
Copy link
Contributor

问题:jsx 语法不兼容
解决方案:@babel/eslint-parser 替换成 babel-eslint

@cklwblove
Copy link
Contributor Author

另外一种解决方案:

{
  parser: 'vue-eslint-parser',
  parserOptions: {
    parser: '@babel/eslint-parser'
    babelOptions: {
      parserOpts: {
        plugins: ["jsx"]
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant