I’ve got a VueJS app and have recently added Vite to run it. When I run vite
in the terminal Vite starts running in port 5173
but I get an error in the browser saying:
This localhost page can’t be found
My vite.config.ts file looks like this:
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
})
Any idea of what I’m doing wrong?