Skip to content
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

React sample app eslint conflict #38

Open
richardwright78 opened this issue Jun 30, 2021 · 1 comment
Open

React sample app eslint conflict #38

richardwright78 opened this issue Jun 30, 2021 · 1 comment

Comments

@richardwright78
Copy link

Hi there,

I'm trying to run the React sample app locally but getting the following error in the terminal:
'There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

"eslint": "^7.11.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of eslint was detected higher up in the tree:

......\vonage-react-sample-app\node_modules\eslint (version: 3.19.0)'

I've tried all the suggested steps to fix the dependency tree but nothing seems to work.

Please can you advise?

@mmassetti
Copy link

Hi,

I did this and it worked:

  1. Remove "eslint" from devDependencies on package.json
  2. Remove package-lock.json
  3. Remove eslintrc.json"
  4. Delete node_modules folder if you've already installed them. Run npm install again
  5. npm run start

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

2 participants