Skip to content

“Definition for rule '@typescript-eslint/consistent-type-assertions' was not found” #16845

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

Closed
arielvol opened this issue Sep 20, 2019 · 4 comments

Comments

@arielvol
Copy link

Hi,

There is a bug in the Create-react-app CLI.
Currently if you use and old package.json that has the : react-scripts: ^3.1.1 version.
and you run npm i and then try to rum the site (npm start) you get the following error:

“Definition for rule '@typescript-eslint/consistent-type-assertions' was not found”

I solved this by deleting the node_module entirely, then I updated my package.json file to use the "react-scripts: 3.1.2" version. then i run the npm i again, and it fixed the issue.

It looks like the new create-react-app doesn't backward support the react-scripts: 3.1.1 version.

Please check this ASAP since I already see posts in StackOverflow, meaning a lot of people are going to encounter this issue.

Thanks.

@pula2000
Copy link

pula2000 commented Sep 20, 2019

Yeah I have the same issue. Updates - Upgrading to 3.1.2 version of react-scripts fixed the issue.

@threepointone
Copy link
Contributor

Please file this issue at https://github.com/facebook/create-react-app/issues, thanks!

@ashanperera201
Copy link

thanks worked.

@nikhillad01
Copy link

try this yarn add @typescript-eslint/eslint-plugin --save , worked for me

itsermin added a commit to itsermin/firetable that referenced this issue Oct 21, 2019
Changing react-scripts to 3.1.2 resolves this error.
facebook/react#16845
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

5 participants