Preparing Convex Functions
After running npx convex dev.
Shows in console Preparing Convex Functions for some seconds and then stops.
28 Replies
Could you try a network test?
npx convex network-test
Shure 🙂
the results
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
Just stops and I can type in my terminal again.
The deploy isn't succeed
Just got this error on console "Error: Spawn EINVAL"
@sol are you on Windows?
Yeah
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 changeI'm getting the same thing in the last few hours
Mines getting stuck at the backfilling stage
I'm on "convex": "1.10.0"
Same error with convex@1.10 😦
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!
hahaha don't worry 🙂
im trying to with an older Noje.js
let me see if its work
thank you, for helping me
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
I'm on node v21.4.0 if that helps at all
guys lmao
before i tried with an older version of Node, i restarted the PC
and it's work
🤡
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?yeah, im using convex@1.10
thanks @ballingt
No I'm not
Also Windows?
I'm on Mac
It is working sometimes, just very slow compared to usual and sometimes just hangs.
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
@ballingt Thanks Tom 🙂
when im free, i going to test in my personal project
Seems to be fine for me today, Have not changed anything in terms of Node or Convex versions.
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
@CodeWithAntonio I would recommend making sure they're running on WSL and to try a different network (tether, different wifi).