Monk
Monkā€¢10mo ago

"convex dev --until-success" dev:init exited with 1

Hello, I am travelling and on a new laptop and forgot to get my project loaded up and working before I left. I have cloned my project, filled in my env.local, run npm install and installed convex globally.
When I run the dev command: npm-run-all dev:init --parallel dev:server dev:client I will spin on preparing convex functions for only a moment before I receive ERROR: "dev:init" exited with 1. What might I be missing? is there a verbose option for this init? I also tried running the existing project command, but it just seemed to place the values I already had in my env.local.
11 Replies
erquhart
erquhartā€¢10mo ago
What's the definition for those dev scripts? we don't know what your dev:init npm script is running
Monk
MonkOPā€¢10mo ago
convex dev --until-success This is using one of convex templates, I didnt write dev:init either šŸ˜›
erquhart
erquhartā€¢10mo ago
is this from a template?
Monk
MonkOPā€¢10mo ago
I believe this was the base i started with: https://github.com/get-convex/convex-nextjs-app-router-demo
GitHub
GitHub - get-convex/convex-nextjs-app-router-demo: Demo showing a N...
Demo showing a Next.js App Router app powered by Convex backend - get-convex/convex-nextjs-app-router-demo
ian
ianā€¢10mo ago
I used to do the dev:init but I've switched to naming it predev which will automatically run before dev either way, the purpose of it is to make sure your code syncs once before running both commands. This gives you an interactive terminal when first setting up your project If you are happy with manually running npx convex dev the first time, then you can get rid of it The --until-success flag will run it once until it succeeds - e.g. if it complains about a schema mismatch or missing environment variable, it'll wait to retry until you've fixed it What does npx convex dev --until-success do for you?
Monk
MonkOPā€¢10mo ago
same resullts. I had the interactive menu the first time: ? Open the browser? Yes āœ” Saved credentials to C:\Users\scott\.convex\config.json ? What would you like to configure? an existing project ? Configure project ChainLink (chainlink-82240)? Yes
No description
Monk
MonkOPā€¢10mo ago
No description
ian
ianā€¢10mo ago
And btw I wouldn't install convex globally - I'd let npm use the version that's in your project, so you don't use a different version accidentally. You can use npx convex to use the version in bin. Can you try adding -v to get more verbose output?
Michal Srb
Michal Srbā€¢10mo ago
You're on a new laptop, and you're on windows. Did you use WSL on your previous laptop?
Monk
MonkOPā€¢10mo ago
No, on my desktop its windows with mingw64 as well, I could get wsl up and running, to try, but I have port issues with it on my desktop so I dont use it often. verbose does same, spins and closes.
No description
Michal Srb
Michal Srbā€¢10mo ago
Hey @Monk , where you able to resolve this?

Did you find this page helpful?