How to fix TypeError: path.parse() argument must be a string in Node.js | DevErrors