Tanstack Start and Express / Hono / whatever examples #2288
drewhamlett
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could we get an example of how to set up Tanstack to start with an existing Express server (dev and prod workflow with vite)? I'm trying to get it running from the
basic-ssr-file-based
example. I'm gettingError: Invariant failed: createServerFn must be called with a function that is marked with the 'use server' pragma. Are you using the @tanstack/router-plugin/vite
. I tried the example that was mentioned in this post: #1878, but no dice.Also one of the things that is nice about Remix is being able to pass context from Express to loaders / actions. https://remix.run/docs/en/main/route/loader#context. Is this something that could be supported?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions