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
The Sveltekit generate TS with new satisfies operator since this PR.
I updated my code hooks.server.ts to use this, like this example, and I get an error.
The output after running the houdini generate -v command and updating my hooks.server.ts to use this new operator:
❌ Encountered error in src/hooks.server.ts
at file:///devel/.local/share/pnpm/global/5/.pnpm/houdini@0.18.1/node_modules/houdini/build/cmd-esm/index.js:76213:15
at async Promise.all (index 2)
at async collectDocuments (file:///devel/.local/share/pnpm/global/5/.pnpm/houdini@0.18.1/node_modules/houdini/build/cmd-esm/index.js:76188:3)
at async compile (file:///devel/.local/share/pnpm/global/5/.pnpm/houdini@0.18.1/node_modules/houdini/build/cmd-esm/index.js:76080:21)
at async Command2.generate
(file:///devel/.local/share/pnpm/global/5/.pnpm/houdini@0.18.1/node_modules/houdini/build/cmd-esm/index.js:76375:5)
Severity
serious, but I can work around it
Steps to Reproduce the Bug
It is possible to use houdini/e2e/sveltekit to reproduce the error, and then:
update the src/hooks.server.ts with with this code:
import{setSession}from'$houdini';importtype{Handle}from'@sveltejs/kit';exportconsthandle=(async({ event, resolve })=>{// set the session information for this eventsetSession(event,{user: {token: '1234-Houdini-Token-5678'}});// pass the event onto the default handlereturnawaitresolve(event);})satisfiesHandle;
then run houdini generate -v
Reproduction
No response
The text was updated successfully, but these errors were encountered:
524c
changed the title
Houdini doesn't work with new TS v4.9 satisfaction operator
Houdini doesn't work with new TS v4.9 satisfies operator
Dec 15, 2022
Oh damn! Good catch. So this happens here. Do you have the time to hunt down the latest version of @babel/parser and bumping the version to support this?
Describe the bug
The Sveltekit generate TS with new
satisfies operator
since this PR.I updated my code
hooks.server.ts
to use this, like this example, and I get an error.The output after running the
houdini generate -v
command and updating myhooks.server.ts
to use this new operator:Severity
serious, but I can work around it
Steps to Reproduce the Bug
It is possible to use
houdini/e2e/sveltekit
to reproduce the error, and then:update the src/hooks.server.ts with with this code:
then run
houdini generate -v
Reproduction
No response
The text was updated successfully, but these errors were encountered: