#create-tauri-app only web bug

9 messages · Page 1 of 1 (latest)

polar plume
#

when i create new stock template project ( 0 changes )
based on Svelte and Javascript (instead of TS)
Using Alpha and It works great on android and ios

When i used the Greet button it crashes in the invoke fn.
ONLY ON WEB
on everything else it works fine

Tauri Info:

[✔] Environment
    - OS: Mac OS 14.1.2 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.74.0 (79e9716c9 2023-11-13)
    ✔ cargo: 1.74.0 (ecb9851af 2023-10-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 21.2.0
    - npm: 10.2.3

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.18
    - tauri-build [RUST]: 2.0.0-alpha.12
    - wry [RUST]: 0.34.2
    - tao [RUST]: 0.23.0
    - @tauri-apps/api [NPM]: 2.0.0-alpha.12
    - @tauri-apps/cli [NPM]: 2.0.0-alpha.18

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: Svelte
    - bundler: Vite

[-] iOS
    - Developer Teams: None

anyone has any idea whats wrong?
Thanks for help in advance

waxen kiln
#

With "Web" do you mean a "normal" browser like safarai, chrome, firefox?

#

If so then this would be expected. Tauri's apis can only work in Tauri windows.

polar plume
#

yea normal browsers,
The thing is it worked at first and this error started to occur.

i made a brand new clean project to test and still happening.

but the first time it worked on a regular browser.

waxen kiln
#

It literally can't work in a browser

#

it's impossible

#

the browser doesn't have the api the tauri api uses

polar plume
#

I see... that what i was thinking... but remembered that it worked.. that why it bugged me...

#

i probably misremember or something