route.outlet is not a function

TypeError: route.outlet is not a function
    at get children [as children] (/var/task/netlify/functions/index.js:18390:22)
    at /var/task/netlify/functions/index.js:15493:35
    at /var/task/netlify/functions/index.js:15455:49
    at createMemo (/var/task/netlify/functions/index.js:15376:10)
    at children (/var/task/netlify/functions/index.js:15455:16)
    at /var/task/netlify/functions/index.js:15493:14
    at createMemo (/var/task/netlify/functions/index.js:15376:10)
    at provider (/var/task/netlify/functions/index.js:15488:12)
    at createComponent (/var/task/netlify/functions/index.js:15553:15)
    at children (/var/task/netlify/functions/index.js:18387:26)