This app must be run with a local server. Don’t open the file directly.
In the project folder, run npm run dev and open the URL it prints (e.g. http://127.0.0.1:5173).
If the dev server is already running, check the address and try http://127.0.0.1:5173 or http://localhost:5173.