Following the firebase function getting started guide and getting a seemingly simple error once trying to deploy with:
firebase deploy --only functions i d
You can fix this by accessing your firebase.json file and delete this line containing RESOURCE_DIR.
firebase.json
RESOURCE_DIR