framework preset and build command keep changing randomly

I have an Astro website, I've set the framework preset 10 times, every time it changes to something else like in the pic. I tried redeploying, it keeps changing the choice I saved
12 Replies
amorfati
amorfatiOP2y ago
for the build command I change to yarn it reverts
Walshy
Walshy2y ago
The preset just sets the values, it doesn't impact anything by showing something else. The reason it shows something else is because that has the exact same values.
amorfati
amorfatiOP2y ago
gotcha. For the yarn part, the docs say that yarn is available by default but I keep getting
amorfati
amorfatiOP2y ago
my envs
amorfati
amorfatiOP2y ago
intersting now it works when I deploy through wrangler cli. Deploying through github using cloudflare app gives me the yarn not found error
Walshy
Walshy2y ago
do you have a yarn.lock? We only install Yarn if we detect it's needed (so if there's a yarn.lock file)
amorfati
amorfatiOP2y ago
Good call. I don't cause I'm using bun locally Why do you need to install yarn since it comes shipped with node through corepack?
Walshy
Walshy2y ago
corepack was only added in node 16, we support lots of versions below that too
amorfati
amorfatiOP2y ago
I set NODE_VERSON as 17 in environment variables. Shouldn't yarn be available?
amorfati
amorfatiOP2y ago
@walshydev do you know what could cause this?
Walshy
Walshy2y ago
Some c++ lib missing it looks like Did this used to work?
amorfati
amorfatiOP2y ago
yup. I removed @miniflare/tre from devDeps and it started working again
Want results from more Discord servers?
Add your server