How to fix TypeError: path.relative() requires both arguments to be strings in Node.js | DevErrors