yokoli
yokoli2y ago

No inputs found

hey! I'm adding convex to an existing project & after running npx convex dev i got this error
Preparing Convex functions... error TS18003: No inputs were found in config file '/Users/yli/code/yaig-bot-test/convex/tsconfig.json'. Specified 'include' paths were '["./**/*"]' and 'exclude' paths were '["./_generated","./actions"]'.
It was a bit of a head scratcher since tsconfig was generated under /convex? 🤔 would appreciate any insights here!
2 Replies
ian
ian2y ago
My guess is it’s because you don’t have any ts files in convex/ yet Try adding a function, you can copy one from the convex/README.md file Sorry for the confusing error- we can probably detect that and avoid running tsc but I’d have to check
yokoli
yokoliOP2y ago
oh this worked! I just added a random .ts file under the /convex directory 👍 thank you!

Did you find this page helpful?