'glob-parent\index.js'. Please verify that the package.json has a valid "main" entry [0] in react project

My project used to run perfectly, I dont know what happened , i started to get this error when i run the frontend

"glob-parent\index.js'. Please verify that the package.json has a valid "main" entry [0] in react project"

this is the top of my package.json

{
  "name": "@minimal/minimal-kit-react",
  "author": "minimals.cc",
  "version": "3.0.0",
  "description": "Javascript Version",
  "proxy": "http://localhost:5000",
  "private": true,
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "eject": "react-scripts eject",
    "lint": "eslint --ext .js,.jsx ./src",
    "lint:fix": "eslint --fix --ext .js,.jsx ./src"
  },
  "eslintConfig": {
    "extends": [
      "react-app"
    ]
  },
  "babel": {
    "presets": [
      "@babel/preset-react"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "dependencies": {
    "@auth0/auth0-spa-js": "^1.19.3",
    "@emotion/cache": "^11.7.1",
    "@emotion/react": "^11.7.1",
    "react-dom": "^17.0.2",
    "react-helmet-async": "^1.2.2",
    "react-hook-form": "^7.22.2",
    "react-redux": "^7.2.6",
    "react-router": "^6.2.1",
    "react-router-dom": "^6.2.1",
    "react-scripts": "^4.0.3",
    "react-toastify": "^8.2.0",
    "redux": "^4.1.2",
    "redux-persist": "^6.0.0",
    
  },
  "devDependencies": {
    "@babel/core": "^7.16.0",
    "@babel/eslint-parser": "^7.16.3",
    "@typescript-eslint/eslint-plugin": "^5.5.0",
    "@typescript-eslint/parser": "^5.5.0",
    "babel-eslint": "^10.1.0",
    "eslint": "^7.32.0",
    "eslint-config-airbnb": "^18.2.1",
    "eslint-config-prettier": "^8.3.0",
    "eslint-config-react-app": "^6.0.0",
    "eslint-plugin-flowtype": "^8.0.3",
    "eslint-plugin-import": "^2.25.3",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-react": "^7.27.1",
    "eslint-plugin-react-hooks": "^4.3.0",
  }
}

I have tried:

  1. deleting node_modules
  2. deleting package-lock-json
  3. yarn install

but in vain, and also m:

  1. deleted the project
  2. cloned again

It's important to note that the project runs perfectly on my teammates' PCs, the problem is definitely with mine

the error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source