You are opening the source file, not the built app.
Build once, then open directly:
npm install && npm run build
Then open dist/app.html directly in your browser.
dist/app.html
For development: npm run dev → localhost:5173
npm run dev