There's just a small typo. The script path in the HTML mount file and the router path need to be the same, but do not match. Either one needs to change:
// ui/dist/index.html
<script src="/main.js"></script>
// src/main.rs
(GET) ["/bundle.js"] => {
Response::text(bundle)
},