accelerator-sample-apps-js
accelerator-sample-apps-js copied to clipboard
React sample app eslint conflict
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?
Hi,
I did this and it worked:
- Remove "eslint" from devDependencies on package.json
- Remove package-lock.json
- Remove eslintrc.json"
- Delete node_modules folder if you've already installed them. Run npm install again
- npm run start