tauri-apps / tauri

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

[bug] Routing doesn't work in release build with Nuxt #7661

Open MidKnightXI opened 1 year ago

MidKnightXI commented 1 year ago

Describe the bug

I'm trying to use a release build I made with tauri. Everything compiles properly BUT routing doesn't work whereas in development mode it's working just fine.

Reproduction

Expected behavior

Routing should work in dev and release build

Platform and versions

[✔] Environment
    - OS: Mac OS 13.5.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.71.1 (eb26296b5 2023-08-03)
    ✔ Cargo: 1.71.1 (7f1d04c00 2023-07-29)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.5.1
    - yarn: 1.22.19
    - npm: 9.8.1

[-] Packages
    - tauri [RUST]: 1.4.1
    - tauri-build [RUST]: 1.4.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.2
    - @tauri-apps/api [NPM]: not installed!
    - @tauri-apps/cli [NPM]: 1.4.0

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../.output/public
    - devPath: http://localhost:3000/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

No response

simonhyll commented 1 year ago

Are you sure you're using Nuxt and not Next.js? Because framework: React and bundler: Vite suggests it's not Nuxt.

Routing works with both Nuxt and Next in both development and production mode. There must be something misconfigured in your frontend.

MidKnightXI commented 1 year ago

Yes I'm using Nuxt I was also confused why it was displaying react