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

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

Open
abhijitpatil181171 opened this issue Jan 6, 2024 · 3 comments
Labels
type: documentation Need to update the API documentation

Comments

@abhijitpatil181171
Copy link

abhijitpatil181171 commented Jan 6, 2024

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

@abhijitpatil181171 abhijitpatil181171 added the type: documentation Need to update the API documentation label Jan 6, 2024
@FabianLars
Copy link
Member

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
Copy link
Author

abhijitpatil181171 commented Jan 7, 2024

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

image
when i open debug exe
image

@abhijitpatil181171
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation Need to update the API documentation
Projects
None yet
Development

No branches or pull requests

2 participants