tauri-apps / tauri

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

[bug] cant use leptos with mobile in latest beta #9744

Open Alt-iOS opened 6 months ago

Alt-iOS commented 6 months ago

Describe the bug

Cant use leptos with ssr in mobile but can in desktop, in mobile i just get crashes

Reproduction

Heres a link to the repo simply run

  1. cargo tauri ios init
  2. cargo tauri ios dev
  3. click the button on the app

attempt the same on desktop and theres no issue

Expected behavior

For it to send a response from the server

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.4.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
    - node: 22.1.0
    - pnpm: 9.1.0
    - yarn: 1.22.19
    - npm: 10.7.0
    - bun: 1.1.7

[-] Packages
    - tauri [RUST]: 2.0.0-beta.19
    - tauri-build [RUST]: 2.0.0-beta.15
    - wry [RUST]: 0.39.3
    - tao [RUST]: 0.28.0
    - tauri-cli [RUST]: 2.0.0-beta.17
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-beta.17

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../target/site/pkg/
    - devUrl: http://localhost:8000/

[-] iOS
    - Developer Teams: Víctor Batarse Shija (ID: AZKVA57TK7)

Stack trace

No response

Additional context

No response

tdomhan commented 5 months ago

Did you get any logs from the crash? I'm running into a black screen that hangs for a few seconds and then the app crashes. I only have this problem when using Leptos in the Rust backend on mobile but not on desktop).