accelerator-sample-apps-js icon indicating copy to clipboard operation
accelerator-sample-apps-js copied to clipboard

React sample app eslint conflict

Open richardwright78 opened this issue 3 years ago • 1 comments

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?

richardwright78 avatar Jun 30 '21 12:06 richardwright78

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

mmassetti avatar Jul 16 '21 13:07 mmassetti