I followed that example; my prefetch looks like this: const { someField } = await invoke(getWhatever, { where: {} })
No complaints from eslint or tsc, but when I run the dev server, I get an error message.
Do I need to provide the context / session in some way?
Paste all your error logs here:
Server Error
TypeError: Cannot read properties of undefined (reading 'session')
This error happened while generating the page. Any console logs will be displayed in the terminal window.
What is the problem?
The documentation provides an example of prefetching via
invoke
: https://blitzjs.com/docs/query-usage#prefetchingI followed that example; my prefetch looks like this:
const { someField } = await invoke(getWhatever, { where: {} })
No complaints from eslint or tsc, but when I run the dev server, I get an error message.
Do I need to provide the context / session in some way?
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
await invoke(getWhatever, { where: {} })
approachRun
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response