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

Cannot compile program that wraps around Vite #16550

Open
muuvmuuv opened this issue Jan 20, 2025 · 0 comments
Open

Cannot compile program that wraps around Vite #16550

muuvmuuv opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working bundler Something to do with the bundler needs investigate Needs to be investigated to find the root cause

Comments

@muuvmuuv
Copy link

What version of Bun is running?

1.1.43-canary.84+189684f17

What platform is your computer?

Darwin 24.2.0 arm64 arm

What steps can reproduce the bug?

I am creating a wrapper around Vite and Tailwind for a project where I need to call them on a single HTML file in a .NET program. But trying to compile my cli wrapper produces this error after compilation. The compilation itself runs fast and fine.

Does Bun not include assets from modules or consider them?

ENOENT: No such file or directory
    path: "/package.json",
 syscall: "open",
   errno: -2,

      at node_modules/vite/dist/node/constants.js:6:3

at node_modules/vite/dist/node/constants.js:6:3

6 |   readFileSync(new URL("../../package.json", import.meta.url)).toString()

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@muuvmuuv muuvmuuv added bug Something isn't working needs triage labels Jan 20, 2025
@DonIsaac DonIsaac added bundler Something to do with the bundler needs investigate Needs to be investigated to find the root cause and removed needs triage labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bundler Something to do with the bundler needs investigate Needs to be investigated to find the root cause
Projects
None yet
Development

No branches or pull requests

2 participants