Vue.js eslint Parsing error .: unexpected token

前端 未结 1 872
轻奢々
轻奢々 2021-01-07 01:47

I am getting this error on a state.js file ( at => in the const profile ) cannot understand why ... thanks for feedback

const credentials = {
  email: \'\'         


        
相关标签:
1条回答
  • 2021-01-07 02:32

    Turn on ES6:

      parserOptions: {
        parser: 'babel-eslint'
      },
    

    should be:

      parserOptions: {
        parser: 'babel-eslint',
        ecmaVersion: 6
      },
    
    0 讨论(0)
提交回复
热议问题