You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite specifying both the env var and the port flag, it still tries to open the dev server on port 8080.
TAURI_CLI_PORT=1776 cargo tauri dev --port 1776 3679ms Wed Aug 28 17:24:21 2024
Running BeforeDevCommand (`trunk serve`)
2024-08-28T23:24:30.781117Z INFO 🚀 Starting trunk 0.20.3
2024-08-28T23:24:30.873699Z INFO 📦 starting build
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s
2024-08-28T23:24:31.471878Z INFO tool version mismatch (required: 0.2.93, system: 0.2.79)
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Rebuilding...
Done in 260ms.
2024-08-28T23:24:32.301974Z INFO applying new distribution
2024-08-28T23:24:32.303744Z INFO ✅ success
2024-08-28T23:24:32.303787Z INFO 📡 serving static assets at -> /
2024-08-28T23:24:32.304138Z INFO 📡 server listening at:
2024-08-28T23:24:32.304142Z INFO 🏠 http://127.0.0.1:8080/
2024-08-28T23:24:32.304144Z INFO 🏠 http://[::1]:8080/
2024-08-28T23:24:32.304190Z ERROR error from server task error=Address already in use (os error 98)
2024-08-28T23:24:32.304222Z ERROR Address already in use (os error 98)
Error The "beforeDevCommand" terminated with a non-zero status code.
Reproduction
Should be reproducible with create-tauri-app --rc
Expected behavior
The dev server should accept the provided port number and run on that port.
--port only affects the built-in devServer (which only works if you don't specify devUrl).
Anyways, you're using trunk to serve your frontend in development, so you'll need to change beforeDevCommand in tauri.conf.json to trunk serve --port=1776, you'll also need to change devUrl to match this new port
Describe the bug
Despite specifying both the env var and the port flag, it still tries to open the dev server on port 8080.
Reproduction
Should be reproducible with
create-tauri-app --rc
Expected behavior
The dev server should accept the provided port number and run on that port.
Full
tauri info
outputStack trace
Additional context
N/A
The text was updated successfully, but these errors were encountered: