route.outlet is not a function

TypeError: route.outlet is not a function
    at get children [as children] (/var/task/netlify/functions/index.js:23398:22)
    at /var/task/netlify/functions/index.js:16973:35
    at /var/task/netlify/functions/index.js:16935:49
    at createMemo (/var/task/netlify/functions/index.js:16856:9)
    at children (/var/task/netlify/functions/index.js:16935:16)
    at /var/task/netlify/functions/index.js:16973:14
    at createMemo (/var/task/netlify/functions/index.js:16856:9)
    at provider (/var/task/netlify/functions/index.js:16968:12)
    at createComponent (/var/task/netlify/functions/index.js:17085:15)
    at children (/var/task/netlify/functions/index.js:23395:26)