Dumb question: how do I make it stop looking for the sample data?
I installed the convex and tanstack start template. New to both. Every time I npm run dev I see a warning that it can't find the sample.json file which I did delete. How do I make convex stop looking for that?
6 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
you can change https://github.com/get-convex/templates/blob/19d92f50df8ac711d6a2cc6117fde7242fd2083a/template-tanstack-start/package.json#L8 to remove the
npx convex import --table tasks sampleData.jsonl
GitHub
templates/template-tanstack-start/package.json at 19d92f50df8ac711d...
Contribute to get-convex/templates development by creating an account on GitHub.
We didn't use to have that but it looked funny not to see the data when you started it up the first time
(we're talking about whether we want to change this command, sorry about the error)
It's great to have the initial import automatic for newbs like me. Maybe document the steps to remove it after the first run (if it isn't already documented and I missed it).
Updated this to have an
npm run seed
command which the create command now suggests you run manually