You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stack trace (In page)
```ts
SyntaxError: Unexpected token T in JSON at position 0
```
stack trace (terminal)
```shell
Cannot read property 'userid' of undefined
TypeError: Cannot read property 'userid' of undefined
at get (/Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/src/routes/todos/index.json.ts:4:86)
at render_route (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:1220:26)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async render (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:1476:10)
at async Object.handle (/Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/src/hooks.ts:14:24)
at async respond (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:1450:10)
at async fetch (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:703:24)
Unexpected token T in JSON at position 0
SyntaxError: Unexpected token T in JSON at position 0
at JSON.parse ()
at Proxy. (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:762:22)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
```
Describe the bug
When creating a fresh new svelte kit app, following https://kit.svelte.dev/docs#introduction-getting-started, the TODO page is not working in the newly generated app.
Logs
stack trace (In page)
```ts SyntaxError: Unexpected token T in JSON at position 0 ```stack trace (terminal)
```shell Cannot read property 'userid' of undefined TypeError: Cannot read property 'userid' of undefined at get (/Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/src/routes/todos/index.json.ts:4:86) at render_route (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:1220:26) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async render (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:1476:10) at async Object.handle (/Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/src/hooks.ts:14:24) at async respond (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:1450:10) at async fetch (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:703:24) Unexpected token T in JSON at position 0 SyntaxError: Unexpected token T in JSON at position 0 at JSON.parse () at Proxy. (file:///Users/I303733/Documents/GitHub/sandbox/sveltekit/my-app/node_modules/@sveltejs/kit/dist/ssr.js:762:22) at processTicksAndRejections (internal/process/task_queues.js:97:5) ```To Reproduce
next
^3.34.0
Expected behavior
A working TODO page.
Information about your SvelteKit Installation:
Diagnostics
Severity
Just anonying for starters, easy to fix.
Additional context
request.context.userid
in a few places. This seems to be renamed torequest.locals.userid
.// request.context.userid comes from src/hooks.js
could also be reworded as it's a typescript file in this contextThe text was updated successfully, but these errors were encountered: