#Need help with Tauri (Application Dev) - JS
1 messages · Page 1 of 1 (latest)
This file works perfectly fine on it's own:
But when I launch tauri app it gives me the import error
google genai 💀
no clue why you're using Tauri if it's all JS anyway (why JS and not TS?)
I wanted to make a lightweight desktop app
It's still shipping a full browser
idk difference between js and ts. I just know that JS is something I am more familliar with
What could have I used for an exe-based lightweight app with high customizability
cross plat like OS?
but TL;DR Tauri doesn't do anything that Electron doesn't (except for "use Rust")
linux n all that
yes
Its the imports
idk how to explain but in short the "web" couldnt reach the import like it normally would while using node
so I had to use a bundler or sm shi
Like this:
Then whats the advantage of using electron instead of tauri?
you don't have the Rust garbage in your project?
Using Tauri makes sense when you plan on shipping Rust code
I didnt rly touch the rust code at all
so does that mean I can transfer to electron and just copy-paste the code I already made?
TL;DR yes (but you also don't gain much except for not having that Rust stuff in your codebase)
I mean if electron is seen as a better name I could just transfer
It's all the same stuff
Moved it over to electron either way. A lot less clutter and files
I'm sure you can guess which is electron
