Open kkhnifes opened 8 months ago
Related #4402
From @paperdave:
to implement stdio option "[object ReadStream]", edit src/js/node/child_process.js, this is a implementation of the node api using Bun.spawn. we do not handle node streams as stdio inputs. some refactoring in the code is needed to allow nonstring stdio options, but this should be pretty easy to implement. idk if that's the only thing blocking it, but if so this would be a good "good first issue" tag.
Hi @Electroid,
I have been investigating the issue, and it seems related to the pagefind build process encountering an error with the stdio option "[object ReadStream]".
From the logs, it appears that the problem arises in the src/js/node/child_process.js file, specifically in the implementation of the node API using Bun.spawn. To resolve this, we may need to handle node streams as stdio inputs and perform some refactoring in the code.
As suggested by @paperdave, this might be a good opportunity for a "good first issue" tag. I am willing to take on the task and work on the necessary changes. Any additional guidance or insights would be appreciated.
Looking forward to contributing to the resolution of this issue!
Best, @kkhnifes
Can confirm that pagefind does not work after a bun build.
Fixed by #10451
What version of Bun is running?
1.0.21
What platform is your computer?
Linux 6.6.8-200.fc39.x86_64 x86_64 unknown
What steps can reproduce the bug?
I'm encountering an issue with Astro Starlight — pagefind is not able to build.
If try to run
bunx --bun astro build
, I get this error:What is the expected behavior?
No response
What do you see instead?
No response
Additional information
astro version: 4.0.1 starlight version: 2.0.1