HeathH
Convex Community3y ago
7 replies
Heath

Typescript compile error on convex folder in convex-ai-chat template

Made an issue on the repo: https://github.com/get-convex/convex-ai-chat/issues/1

I know it's probaby a one line config change but I haven't figured it out, it's a vite app for the frontend and tsc is failing with:

convex/serve.ts:4:44 - error TS2307: Cannot find module 'openai/resources' or its corresponding type declarations.

Do I have to update tsconfig in the root to know about the tsconfig in /convex or something?
GitHub
Thanks for sharing this template, it's great! I'm having some trouble getting it to build using npm run build - it's related to being able to find the openai/resources import in serve.t...
Typescript compile issue · Issue #1 · get-convex/convex-ai-chat
Was this page helpful?