Getting TS error `xyz is not assignable to type '"Function is not serializable"'` from `beforeLoad`
I've been trying to implement the code pattern shown here like this:
This gives me an error on
I started the app inside a monorepo using
When having the same code in a standalone repo right after
Also, when just ignoring with
I already tried c/p the whole
.
I'd really appreciate some input on where I could look into!
This gives me an error on
beforeLoad:I started the app inside a monorepo using
npm create @tanstack/start@latest and adjusted some stuff like TS config etc.When having the same code in a standalone repo right after
npm create @tanstack/start@latest, I'm not getting this errors.Also, when just ignoring with
@ts-ignore, everything is working as expected at runtime, so this only seems to be build time issue.I already tried c/p the whole
tsconfig.json from the standalone app to the monorepo app but am still seeing the error I'd really appreciate some input on where I could look into!