Closed butoften closed 10 months ago
It should be serving at http://localhost:8080
As with your other issue #2178 I'm not able to reproduce the issue: If I trunk trunk serve --open
in that directory, it opens a browser window at 127.0.0.1:8080
showing the example.
What happens if you go to that address after running trunk serve
? (And did the example actually compile? i.e., do you see the long cargo build output before the message you pasted above?)
trunk serve --open
, and it does indeed display a long compilation output.Sure. Trunk (https://trunkrs.dev/) is just a convenient build tool. If trunk build
worked, it should have built all the files you'd need to serve into a dist
folder. You should be able to serve those using any simple server.
I can run the project in dist
folder with other server
only trunk
doesn't work, It's quite strange.
Strange. Haven't heard of issues before. It could be worth opening an issue on the trunk
repo, but it sounds like it's not a Leptos issue (unless you've successfully used Trunk with other Rust/WASM projects).
ok, thank you, i will close this issue thank you
I has download leptos example 「fetch 」 and run trunk serve --open the trace info show everything is success,but it didn't auto open the browser, and there's no url such as http://localhost:8000,
when i access http://localhost:8000 or 8080(i don't know ,just i guess),it can not work, that means trunk serve cmd is not completely completed,although it showed success
computer info: stystem: macOS Monterey 12.2.1 rustc: 1.77.0-nightly trunk: 0.18.4
i want to know if I has done the wrong step or miss some steps,thank you