Create-react-app: Out of date eslint plugin causes `Parsing error: Cannot read property 'map' of undefined`

Created on 2 Sep 2020  路  4Comments  路  Source: facebook/create-react-app

Describe the bug

I've upgraded my project's TypeScript to version 4. It seems this creates an issue because react-scripts @typescript-eslint/parser is out of date. Could we bump these packages?

Currently I am doing this in my package.json:

  "resolutions": {
    "**/@typescript-eslint/parser": "4.0.1",
    "**/@typescript-eslint/eslint-plugin": "4.0.1"
  },

as a workaround.

bug report needs triage

Most helpful comment

I've just realized the PR is tagged with v4 :( is there any chance we can still have this in v3?

All 4 comments

The resolutions is for Yarn, for NPM uses https://docs.npmjs.com/cli/shrinkwrap or https://www.npmjs.com/package/npm-force-resolutions

Anyway look like CRA is using version 2 of the plugin.. that means 2 major versions of the plugin and 1 major version of eslint we're behind

Yeah it is quite a way behind. What would be the negatives of bumping it?

https://github.com/facebook/create-react-app/pull/9590 Submitted a PR. Wonder when all the builds will start working :S

I've just realized the PR is tagged with v4 :( is there any chance we can still have this in v3?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jnachtigall picture jnachtigall  路  3Comments

fson picture fson  路  3Comments

wereHamster picture wereHamster  路  3Comments

dualcnhq picture dualcnhq  路  3Comments

barcher picture barcher  路  3Comments