Line 0: Parsing error: Cannot read property 'map' of undefined

前端 未结 11 1578
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-30 18:49

Currently starting up the server on my client side, the error above is what I have been getting. I am using Typescript, React, ESlint. I can\'t seem to go forward since th

11条回答
  •  無奈伤痛
    2020-12-30 19:18

    Your version of TypeScript is not compatible with your eslint. You can fix it by upgrading these two dependencies to the latest version. Version 4.6.0 is compatible with TypeScript 4.0.5

    "devDependencies": {
      "@typescript-eslint/eslint-plugin": "^4.6.0",
      "@typescript-eslint/parser": "^4.6.0",
    }
    

提交回复
热议问题