I'm getting an error similar to this post and I've checked to see if I could resolve it in the same way, but it appears to be a different issue.
Whenever I try to push, deploy or convert to metadata, I'm getting the error
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
This error also shows up in the Problems tab in VS Code, but clicking on it gives me another error (Unable to open "": File is a directory.)
This issue was reported on the github/cli forum by others over the last 8-9 months, but there's no clear resolution. I've added more detail (json error output) there.
The only "path" argument I can find is in the sfdx-project.json, and it's clearly a string:
{
"packageDirectories": [{ "path": "force-app", "default": true }],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "46.0"
}
I'm completely stuck with no clear way to debug this. Would appreciate any ideas...
<<<<< HEAD
etc. Also combing through the .forceignore file.