[RC] Cloudflare-vite unable to run dev server and build
I'm unable to run the dev server after upgrading to RC. The issue seems to be related to the
getSession
in the root's beforeLoad.
https://github.com/khashvin/tss-cloudflare/blob/master/src/routes/root.tsx#L16
How can I fix this? Am I missing something?
repro: https://github.com/khashvin/tss-cloudflare
4 Replies
other-emerald•6d ago
you have to install
better-sqlite3
cause locally, its use a sqlite filejudicial-coralOP•6d ago
same issue after installing it. it was working before this with D1 locally before I upgraded to RC
other-emerald•6d ago
get rid of bindings.ts
get env like this `import { env } from 'cloudflare:workers';``
judicial-coralOP•6d ago
yep that was the issue.
Thanks! @stunaz