NickN
Convex Community12mo ago
7 replies
Nick

`tsc -b` fails because @convex/_generated references server side code

This is my project:
https://github.com/nickretallack/ranked-choice-convex

When I run
npm run build
it runs tsc -b and gives the attached errors.

The logic seems to all be that a server-side file is referenced by another server side file that is referenced by the generated API that the frontend uses.

What should I do to make typescript happy?
Was this page helpful?