partap
Server-only modules for Nitro
Ok, I figured it out...
Just forgot how I initially set up the code on the client side of the login before I implemented the server side...
Turns out I was defining and exporting my
User
type (needed on client side) in the same module where I eventually defined the db functions (createUser
, getUserByUsername
, etc...)
So on the client side I was using:
but types.ts had:
and in users.ts:
...so the client now needed to load mssql 😱4 replies