Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would we use the global bun object, such as when use .file() #3

Open
KyleFontenot opened this issue Mar 14, 2023 · 0 comments
Open

Comments

@KyleFontenot
Copy link

Bun's latest version does have file I/O, but the api uses a global Bun object which I can't seem to access from a server endpoint using the adapter. Thought maybe the adapter would have to be updated if the bun dependency is.
https://bun.sh/docs/api/file-io

Thought maybe I could try import Bun from 'bun' (after installing bun) I get:

Internal server error: Failed to resolve entry for package "bun".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant