tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
79.56k stars 2.36k forks source link

Need more information to embed node backend binary (express + sqlite) to tauri and expose backend api to react frontend #8560

Open abhijitpatil181171 opened 6 months ago

abhijitpatil181171 commented 6 months ago

I am using tauri to create exe of my react application and i am using node backend (express + sqlite) client side db. i want to embed backend binary into tauri app as external binary and expose api to my react app so i modify my tauri.config.json i have added image of my package.json. and also modified main .rs i have added image of this also but when i make build of this run exe i am unble to connect with backend. tauri_package_json main rs how can solve this issue ? image

FabianLars commented 6 months ago

Does it print any errors in the terminal if you do tauri dev or tauri build --debug (output in target/debug/ )? It sounds like your sidecar just failed to start because of some error.

abhijitpatil181171 commented 6 months ago

when run command npm run tauri -- --debug i get this in terminal

image when i open debug exe image

abhijitpatil181171 commented 6 months ago

when i run binary from react i get this error in terminal image