Can't build source using a mac
mac 15.2
node 18.10
npm: 8.19.2
latest rust
latest pnpm
instructions:
Getting:
Similar to: https://github.com/get-convex/convex-backend/issues/7 but that is windows machine.
GitHub
Please consider build instructions for Windows ยท Issue #7 ยท get-con...
Hi, I am trying out convex; However, the justfile etc seem to heavily favor a unix environment. This project does provide Windows releases, so I was hoping to perform the same release build. I trie...
40 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!
i just cloned the repo, ran those commands, and it worked for me. how did you install rust? maybe it's using the wrong version
does
just rush build -v
show more errors?
oh and i'm on mac 15.0.1Thanks for the reply. Here's mine:
I think I used:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh does just rush build -v show more errors?
at this point i would start pestering Claude to figure out why the rust version is incorrect
Alright, what I'll do. Is I will uninstall rust and start again.
you could try
just rush install
? i think the cargo build is supposed to do that automatically, but this error indicates it might not haveThis time failed with:
And a whole host of yarn failures
I think it's best if I just focus on getting the latest rust release and then go from there ๐
claude suggests
rustup show
as a command that can tell you why it's using a certain version of rustAlright, I re-installed
to double check, you're running
cargo version -v
from the root of the convex-backend repo, right?no, a new terminal
oh so what is
cargo version
from the root of convex-backendI'm doing another install, I see at the beginning:
cargo version yields: cargo 1.85.0-nightly (769f622e1 2024-12-14)
and I still get:
any more to that error message?
i would guess we're back to figuring out the
just rush install
and just rush build
errorsThe Yarn errors in here may be because you have yarn installed globally, or have some yarn config files sitting around
You should delete
.pnp.cjs
wherever it isI'm cloning the repo and not doing any changes. Yarn is installed globally though.
there's no such file in the root, unless it's in other subfolders?
The errors say
../../../../../../.pnp.cjs:37:31:
so maybe your home directory
maybe a directory you have convex checked out underthis is the directory structure.
/Users/paul/development/src/github/convex-backend
ok, so the directories to check are
/Users/
, /Users/paul
, /Users/paul/development
, /Users/paul/development/src
, and /Users/pault/development/src/github
unless you want to count those ..
I removed yarn ๐. Although I need it for some projects. ๐ญ
you probably dont' need it installed globally like this, it breaks everything under it that uses esbuild
Same issue though. ๐
https://github.com/evanw/esbuild/issues/3338
Still have the yarn errors?
@Paul What's your goal here, building convex-backend requires some setup, do you just want to run a binary?
this is the full log: https://pastebin.com/raw/a6Dv94pP
does
ls /Users/.pnp.cjs /Users/paul/.pnp.cjs /Users/paul/development/.pnp.cjs /Users/paul/development/src/.pnp.cjs /Users/paul/development/src/github/.pnp.cjs
print anything?the goal is to run from source and then to start making changing and having a poke around ๐
This error message says there's still a
.pnp.cjs
thereyep there it is ๐
What's the issue?
That's what you need to delete
rm /Users/paul/.pnp.cjs
(or mv /Users/paul/.pnp.cjs /Users/paul/backup.pnp.cjs
)The thread I linked has more nuanced solutions
(pnpIgnorePatterns)
Alright I will check that out. I'm rebuilding again...
Thanks @Lee and @Tom! ๐
Sounds like we could write a script to look for these files as a pre-check, if this error message had been at the top or the bottom do you think you would have been able to figure out what to do? It's hard to write code that works on every machine when people have different setups
Convex is now running from source. Thank you for the help. Would never have figured it was yarn .pnp lol