#`astro` .bin file disappeared

71 messages ยท Page 1 of 1 (latest)

calm talon
#

suddenly the astro.js bin no longer is moved to the .bin folder of the node_modules. It is the only one, of all the node executables, even astro-check.js moves correctly. I tried deleting the node_modules, regenerating the lockfile, removing and adding astro, I don't understand why it happened and why the astro executable is special..
I've been working on this project for months without any issues, added some dep (unrelated) and this started happening.

Any ideas?
astro version: any v4 and any v5.beta,
pnpm version: v9.2.0

median loom
calm talon
#

will try again

#

how fucked up is that?

median loom
#

hmm. that's odd. does this happen in all projects, or just one?

calm talon
#

Only this one, and only astro specifically is missing from the list

#

I don't even know if this is even related to astro, as looking at the package.json and the files shows like it should work

#

but I don't know who to ask lmao

median loom
#

does the project have any overrides or other package manager configs?

calm talon
#

none whatsoever

median loom
#

hmm, this is a weird one ๐Ÿ˜…
is the project repo public?

calm talon
#

no.. ๐Ÿ˜”

#

I wanted it to, but our competition just forked the project and tried to sell it as their own

median loom
#

ok, no worries. hmm, does --shamefully-hoist help at all? I wonder if it might output the binaries differently

calm talon
calm talon
clever echo
calm talon
#

literally threw their project away and forked ours

#

license be damned

clever echo
#

"Were gonna make so much money, let the lawyers handle that shit later"

calm talon
median loom
#

final idea I have off the top of my head, does cloning the project into a fresh directory help at all ๐Ÿ˜… (might be worth deleting the lockfile to regenerate that at the same time too?)

clever echo
#

Any chance you have an SSR adapter?

calm talon
clever echo
#

Well this is probly not related at all, but I recently had a super weird issue with one of the global Astro methods not working

Tried many reinstalls of lockfile/node modules/etc recloned all that jazz nothing work

Ended up fixing it by swapping adapters (in my case i swapped netlify to node) and then back again

Idk if it would help but it defeinitelly seemed like I had some kind of weird artifacts or leftover garbage clinging around that was effecting it

calm talon
#

lets give it a go

clever echo
calm talon
#

nope ๐Ÿ˜ข

calm talon
#

"downloaded 1" hmm, maybe something changed?

clever echo
#

I like them odds

clever echo
# calm talon cool-looking game tho

Thanks! I wish it was my game, full credit to Wanderlost Studios and their insane giga chad 2 man 10x dev team ๐Ÿ˜›

I just made a fun utility site haha

calm talon
#

and.....

#

I don't get it

clever echo
#

๐Ÿ˜ญ

calm talon
#

wtf is even going on

clever echo
#

Have you tried running it on a different machine just for Shiz and Giggles to see?

calm talon
#

Don't have one at hand rn

clever echo
#

Ah

calm talon
#

I will try the re-cloning thing

clever echo
#

Well I know you don't know me from the next average joe but if you want to add me to the repo I would be happy to test ๐Ÿ‘ it for you, though I only have my macbook atm

calm talon
#

oh my god

clever echo
#

very strange

calm talon
median loom
clever echo
#

At this point I feel like its all worth a shot haha

median loom
#

hmm. it might be worth switching to another package manager for just this project if you're the only dev (or discuss it with your team if you're on one)

clever echo
#

Wow lets not get dramatic now, no need to inflict NPM on anyone (kidding)

calm talon
#

I FINALLY SOLVED IT.

median loom
#

what was the cause?

calm talon
#

This package does not exist, so it's not linking to anything (fluke on my part), not a single clue how, but it launched some rube goldberg machine that caused the issue. Removed that line, pnpm i, works. Add it back in, pnpm i broken

#

I know that correlation is not causation, but this correlating perfectly to that is all I care about, this goes YEET

clever echo
#

Good find, out of curiosity how did you find out the package didn't exist? Did you just look them all up online? xD

calm talon
#

Yes

calm talon
#

like 3 candidates

clever echo
#

Nice, some good old fashioned detective work haha

Glad you got it working โค๏ธ

twin oreBOT
#
If your issue is resolved, please help by doing the following two steps:
  1. From the ellipses (3-dot menu) in the top-right corner of the post (not the first message), edit the tags to include the Solved tag.
  2. From the same ellipses, select Close Post.
    Your post will still be available to search and can be re-opened simply by replying in it. Closing a post moves it down with older posts, so we can more easily focus on issues that still need to be resovled.
    Thank you for your help!
calm talon
#

Idk if solved is the right verb, kinda feel like I uncovered something deeper in pnpm... But thats for someone else to stumble-upon, it seems...