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

Sveltekit build fails with ENOENT #15000

Open
alfredjophy opened this issue Nov 5, 2024 · 0 comments
Open

Sveltekit build fails with ENOENT #15000

alfredjophy opened this issue Nov 5, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@alfredjophy
Copy link

What version of Bun is running?

1.1.34+5e5e7c60f

What platform is your computer?

Linux 6.11.6-1-cachyos x86_64 unknown

What steps can reproduce the bug?

  1. Create a new sveltekit app
  2. Run build with bun - bun --bun run build

What is the expected behavior?

The build succeeds

What do you see instead?

Build fails

❯ bun --bun run build
$ vite build
vite v5.4.10 building SSR bundle for production...
ENOENT: No such file or directory
   errno: -2
 syscall: "stat"


Bun v1.1.34 (Linux x64)
error: script "build" exited with code 1

Additional information

If I build without --bun, it works.

Running build after ( a build directory being present), with ---bun flag results in another error

error: Module not found 'PATH/TO/PROJECT/build'

Bun v1.1.34 (Linux x64)

It appears that bun is looking to run a scrip inside of the build directory.

@alfredjophy alfredjophy added bug Something isn't working needs triage labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant