-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Vite error when using bun with Tauri #3237
Comments
this is a duplicate of #3216 but the EACCES on spawn esbuild is a little concerning. can you try this again not within |
It wasn't in my /Users but on my personal user directory, I also tried with sudo but same error |
@MidKnightXI , the |
I find that even running the tauri creation script gives a Strict mode error:
Output: ➜ bun --bun x create-tauri-app@latest
error: Declarations with the name arguments cannot be used with esm due to strict mode
const [bin, script, ...arguments] = process.argv;
^
/private/tmp/create-tauri-app@latest--bunx/node_modules/create-tauri-app/create-tauri-app.js:10:24 249
error: "create-tauri-app" exited with code 1 (SIGHUP)
|
I'll check tonight if I can, will post the result when I'm done trying 👍🏻 |
➜ ~ bun --bun x create-tauri-app@latest
error: Declarations with the name arguments cannot be used with esm due to strict mode
const [bin, script, ...arguments] = process.argv;
^
/Users/midknight/.config/yarn/global/node_modules/create-tauri-app/create-tauri-app.js:10:24 249
error: "create-tauri-app" exited with code 1 (SIGHUP) |
that is not related. the error shown is related to strict mode. if you rename the variable, things almost work but there is an event loop related bug which can be fixed by using top-level await on their |
This issue with |
This doesn't seem to be entirely fixed (at least for me). While I'm able to create the Tauri app, I can't run it with
|
@s9kt , as explained here will the error be resolved when a new version of @tauri-apps/cli comes out. |
When running the |
continuation of this |
Anyone still getting this issue? |
What version of Bun is running?
0.6.7
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
yarn
intauri.conf.json
bun install
bun run tauri dev
What is the expected behavior?
Vite should create a server for the front and tauri should build the project with cargo
What do you see instead?
Additional information
The text was updated successfully, but these errors were encountered: