You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Thanks for the report. Likely because of our carat dependency on eslint-config-react-app. I imagine you're now seeing peer dependency warnings for @typescript-eslint/* packages as well?
@iansu i forgot we had peer deps on @typescript-eslint packages, so should have likely been released as a breaking change for eslint-config-react-app. Probably worth re-evaluating including direct dependencies instead of peer deps for some in eslint-config-react-app?
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: