-
Notifications
You must be signed in to change notification settings - Fork 48.6k
“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
Comments
Yeah I have the same issue. Updates - Upgrading to 3.1.2 version of react-scripts fixed the issue. |
Please file this issue at https://github.com/facebook/create-react-app/issues, thanks! |
thanks worked. |
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
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.
The text was updated successfully, but these errors were encountered: