Using bun, all is updated.
error loading dynamically imported module: http://localhost:5173/node_modules/@builder.io/qwik-city/qwikcityprovider_component_goto_fx0bdjeja0e.js?_qrl_parent=index.qwik.mjs
here's the code
import { component$ } from "@builder.io/qwik";
import { useNavigate, Link } from "@builder.io/qwik-city";
import { styled } from "~/src/styled-system/jsx";
const Navbar = component$(() => {
const signedIn = true;
const nav = useNavigate();
return (
<Container>
<Message onClick$={() => nav('/about')}>
app
</Message>
{
signedIn
? <Menu>
<Link href="/about">About</Link>
<a href="contact">Contact</a>
</Menu>
: <Menu>
<a href="/login">Login</a>
</Menu>
}
</Container >
);
});