#auth.config in TypeScript

9 messages · Page 1 of 1 (latest)

prisma basalt
#

@real wharf asked:

good day folks. i'm just setting up clerk with convex on react native expo and i've come across a problem. the documentation uses javascript to set up auth.config, however, my app uses typescript. so instead of convex/auth.config.js, i created convex/auth.config.ts and running npx convex dev gives me this error:
Image
sticking to the documentation with convex/auth.config.js also gives me type errors. i appreciate any help with this 🙂

#

Hey @real wharf , make sure you're on the latest version of Convex, and use auth.config.js. You shouldn't need to import from this file (and generated files shouldn't import from it either).

npx convex --version should print 1.0.3 or similar (at least 0.19.0).

real wharf
#

for reference, here's what my auth.config.js looks like

#

and deleting the file also clears up the type errors in the console

stone kindle
#

@real wharf I'd add "skipLibCheck": true to your convex/tsconfig.json file

#

these are TypeScript errors from the TypeScript type check that convex does before deploying