sol
sol9mo ago

Preparing Convex Functions

After running npx convex dev. Shows in console Preparing Convex Functions for some seconds and then stops.
No description
No description
28 Replies
ballingt
ballingt9mo ago
Could you try a network test? npx convex network-test
sol
solOP9mo ago
Shure 🙂
sol
solOP9mo ago
No description
sol
solOP9mo ago
the results
ballingt
ballingt9mo ago
After this stops, edits don't sync? Does the deploy succeed? I'm wondering if this is a logging output issue or if it's preventing you from developing with Convex
sol
solOP9mo ago
Just stops and I can type in my terminal again. The deploy isn't succeed Just got this error on console "Error: Spawn EINVAL"
ballingt
ballingt9mo ago
@sol are you on Windows?
sol
solOP9mo ago
Yeah
ballingt
ballingt9mo ago
Could you try an older version of the Convex CLI? I assume this is 1.11? Could you try installing convex@1.10 and seeing if there's any change
Michael Rea
Michael Rea9mo ago
I'm getting the same thing in the last few hours Mines getting stuck at the backfilling stage
Michael Rea
Michael Rea9mo ago
No description
Michael Rea
Michael Rea9mo ago
I'm on "convex": "1.10.0"
sol
solOP9mo ago
Same error with convex@1.10 😦
ballingt
ballingt9mo ago
Cool! if you're up for it, could you try with an older Node.js version? I'm guessing you're on Node.js 20? reading a bit it sounds like this could be an issue introduced in Node.js 20, but curious if that fixes it thank you for trying the earlier Convex version! but what you've done so far is already helpful, thank you!
sol
solOP9mo ago
hahaha don't worry 🙂 im trying to with an older Noje.js let me see if its work thank you, for helping me
ballingt
ballingt9mo ago
Thank you, you're helping me track this down too, I haven't reproduced this so if we figure out that Node.js version directly fixes that's helpful
Michael Rea
Michael Rea9mo ago
I'm on node v21.4.0 if that helps at all
sol
solOP9mo ago
guys lmao before i tried with an older version of Node, i restarted the PC and it's work 🤡
ballingt
ballingt9mo ago
oof thats not helpful for debugging but I'm glad it's working for you! @sol is this still on the older version of Convex? Curious if you upgrade if it comes back — but don't worry about this, glad things are working! @Michael Rea Are you seeing the "Error: Spawn EINVAL" error too? Or just stuck?
sol
solOP9mo ago
yeah, im using convex@1.10 thanks @ballingt
Michael Rea
Michael Rea9mo ago
No I'm not
ballingt
ballingt9mo ago
Also Windows?
Michael Rea
Michael Rea9mo ago
I'm on Mac It is working sometimes, just very slow compared to usual and sometimes just hangs.
ballingt
ballingt9mo ago
I believe we've fixed this issue, we'll do a client release soon to get it out if so. @sol convex 1.11.1 was just released, it should fix the EINVAL issue
sol
solOP9mo ago
@ballingt Thanks Tom 🙂 when im free, i going to test in my personal project
Michael Rea
Michael Rea9mo ago
Seems to be fine for me today, Have not changed anything in terms of Node or Convex versions.
CodeWithAntonio
CodeWithAntonio7mo ago
Hi @ballingt my apologies for the ping - a student of mine on Windows faces the exact same problem, 2 prints of preparing functions, and then shuts down w/o errors. We tried debugging via --verbose but no luck. Same if we remove the .env variables and attempt a creation of new project. He is on node 20. Is there anything you would recommend they attempt to do? 🙏 I have no issues with this on MacOS, node 20 as well
Michal Srb
Michal Srb7mo ago
@CodeWithAntonio I would recommend making sure they're running on WSL and to try a different network (tether, different wifi).

Did you find this page helpful?