This template should help get you started developing with Vue 3 in Vite.
VSCode Volar (and disable Vetur).
See Vite Configuration Reference.
To make works the OpenWeatherAPI, you should create a .env file that content the API KEY like this :
VITE_API_WEATHERKEY=YOUR_API_KEY
npm install
npm run dev
npm run build