TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react app

Fredrick Barrett :

I'm working on a project in React and ran into a problem that has me stumped.

Whenever I run yarn start I get this error:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined

I have no idea why this is happening, if anyone has experienced this I would be grateful.

EngrEric :

To fix this issue simply upgrade to "react-scripts": "^3.4.0"

  1. Overwrite the existing "react-scripts": "^3.x.x" with"react-scripts": "^3.4.0" in your package.json
  2. Delete your node modules
  3. and npm install or yarn install

i hope it will fix it faster you

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=6873&siteId=1