Cannot read property 'replace' of undefined
TypeError: Cannot read property 'replace' of undefined
    at Function.module.exports../pages/tag.js.TagPage.getInitialProps (/var/www/html/urbanasia/.next/server/static/development/pages/tag.js:2510:26)
    at loadGetInitialProps (/var/www/html/urbanasia/.next/server/static/development/pages/_document.js:593:33)
    at Function.<anonymous> (/var/www/html/urbanasia/.next/server/static/development/pages/_app.js:3384:58)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/var/www/html/urbanasia/.next/server/static/development/pages/_document.js:250:24)
    at _next (/var/www/html/urbanasia/.next/server/static/development/pages/_document.js:272:9)
    at /var/www/html/urbanasia/.next/server/static/development/pages/_document.js:279:7
    at new Promise (<anonymous>)
    at new F (/var/www/html/urbanasia/node_modules/core-js/library/modules/_export.js:36:28)
    at Function.<anonymous> (/var/www/html/urbanasia/.next/server/static/development/pages/_document.js:268:12)
    at Function.appGetInitialProps (/var/www/html/urbanasia/.next/server/static/development/pages/_app.js:3375:30)
    at Object.loadGetInitialProps (/var/www/html/urbanasia/node_modules/next/dist/next-server/lib/utils.js:50:35)
    at Object.renderToHTML (/var/www/html/urbanasia/node_modules/next/dist/next-server/server/render.js:186:31)
    at async DevServer.renderToHTML (/var/www/html/urbanasia/node_modules/next/dist/server/next-dev-server.js:17:522)
    at async DevServer.render (/var/www/html/urbanasia/node_modules/next/dist/next-server/server/next-server.js:323:22)
    at async Object.fn (/var/www/html/urbanasia/node_modules/next/dist/next-server/server/next-server.js:212:21)