The path argument must be of type string solution code example
Example: the path argument must be of type string. received undefined react
To fix this issue simply upgrade to "react-scripts": "^3.4.0"
To fix this issue simply upgrade to "react-scripts": "^3.4.0"