Solo00Root
Solo00Root2y ago

Problem with tsconfig.json

i just added convex to my big project and i get this error Specified 'include' paths were '[".//*"]' and 'exclude' paths were '["./_generated"]'., i added "src//*" but still not working
9 Replies
ballingt
ballingt2y ago
is this the tsconfig at convex/tsconfig.json? What error do you get if you undo from the originally generated one, without this src/ change? This file is used for compiling the files in the convex/ directory, not the rest of your project so you don't want to add src
Solo00Root
Solo00RootOP2y ago
No inputs were found in config file 'c:/Users/giannis/Desktop/GuessGame/my-app/convex/tsconfig.json'. Specified 'include' paths were '["./*/"]' and 'exclude' paths were '["./_generated"]'. without changing anything
ballingt
ballingt2y ago
cool, that looks like an error but it's fine you just need to add your first query or mutation
Solo00Root
Solo00RootOP2y ago
yes its big error i doesnt stop the compiling
ballingt
ballingt2y ago
yeah we could improve this by generating an initial query during setup helpful to hear
Solo00Root
Solo00RootOP2y ago
👍
ballingt
ballingt2y ago
Does it go away once you write your first query in the convex directory?
Solo00Root
Solo00RootOP2y ago
nope
ballingt
ballingt2y ago
Could you paste the whole error here, the command you're running, the contents of the convex directory, and the contents of the tsconfig.json? Those are all the pieces we'd need to guess — but also are you able to make progress without this, do you have a convex query hooked up and working?

Did you find this page helpful?