score:3

Accepted answer

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

"babel-eslint": "10.1.0", "eslint": "^6.8.0"

Use command: npm install eslint@6.x babel-eslint@10 --save-dev

score:0

I followed some steps its work for me.

step 1: change your project location as if you saved it on D drive change its to E drive.

step 2: Delete node modules.

step 3: Install node modules with run this command >> npm install

score:0

What worked for me was searching on my Mac for all instances of node_modules, deleting all of them, going to the directory that you want to host these files, then re-running the following commands in the terminal in that directory:

--> npm install -g create-react-app
--> create-react-app jsx 

(change to your React directory (i.e. name of your React project, in my case it is 'jsx'))

--> npm start

score:0

I got this kind of error when I create a react project inside another react project. If you have the react project inside another react project this kind of error will be common.

score:1

My problem was solved by deleting node_modules that was in my "C:\Users" folder.

score:1

A quick fix is creating a file named .env in the project folder with the following content SKIP_PREFLIGHT_CHECK=true

I couldn't get anything else to work, npm, yarn, deleting lock, deleting node_modules, etc. This is just happening in my linux mint environment, not on windows or ubuntu.

score:3

/Users/gi go to this and type npm i babel-eslint@10.1.0 It would solve your problem. Its worked for me


Related Query

More Query from same tag