Upon initial load of the app, the session store from $app/stores is null.
TypeError: Cannot read property 'session' of null
at eval (C:\Users\morav\Documents\Private\Programming\SvelteKitAuth\SvelteKitAuth\app\src\routes\__layout.svelte:19:61)
at Object.$$render (C:\Users\morav\Documents\Private\Programming\SvelteKitAuth\SvelteKitAuth\app\node_modules\svelte\internal\index.js:1380:22)
at eval (/C:\Users\morav\Documents\Private\Programming\SvelteKitAuth\SvelteKitAuth\app\.svelte-kit\dev/generated/root.svelte:55:122)
at $$render (C:\Users\morav\Documents\Private\Programming\SvelteKitAuth\SvelteKitAuth\app\node_modules\svelte\internal\index.js:1380:22)
at Object.render (C:\Users\morav\Documents\Private\Programming\SvelteKitAuth\SvelteKitAuth\app\node_modules\svelte\internal\index.js:1388:26)
at render_response (file:///C:/Users/morav/Documents/Private/Programming/SvelteKitAuth/SvelteKitAuth/app/node_modules/@sveltejs/kit/dist/ssr.js:377:28)
at async respond_with_error (file:///C:/Users/morav/Documents/Private/Programming/SvelteKitAuth/SvelteKitAuth/app/node_modules/@sveltejs/kit/dist/ssr.js:936:10)
at async respond$1 (file:///C:/Users/morav/Documents/Private/Programming/SvelteKitAuth/SvelteKitAuth/app/node_modules/@sveltejs/kit/dist/ssr.js:1155:10)
at async render_page (file:///C:/Users/morav/Documents/Private/Programming/SvelteKitAuth/SvelteKitAuth/app/node_modules/@sveltejs/kit/dist/ssr.js:1186:20)
at async render (file:///C:/Users/morav/Documents/Private/Programming/SvelteKitAuth/SvelteKitAuth/app/node_modules/@sveltejs/kit/dist/ssr.js:1537:10)
This may be an issue in SvelteKit or the way it's used by __layout.svelte. Requires further investigation.
Overview
Upon initial load of the app, the
session
store from$app/stores
is null.This may be an issue in SvelteKit or the way it's used by
__layout.svelte
. Requires further investigation.