kouts / vue3-ts-vite-starter-template

Vue.js 3 TypeScript / Vite starter template with Pinia, Vue Router, Tailwind and more.
MIT License
18 stars 6 forks source link

crash of lacking App.vue #15

Open Bader-Idris opened 2 weeks ago

Bader-Idris commented 2 weeks ago

because of not adding the . before the root of src in vite config file, it's causing a crash of:

Internal server error: Failed to resolve import "@/App.vue" from "src/main.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: E:/coding_and_programming/eslint9-vite-vue3/src/main.ts:3:16
  1  |  import { createPinia } from "pinia";
  2  |  import { createApp } from "vue";
  3  |  import App from "@/App.vue";
     |                   ^
  4  |  import Default from "@/layouts/default/Default.vue";
  5  |  import { router } from "@/router";

I added the . and it got started well!

kouts commented 2 weeks ago

Hey @Bader-Idris, I cannot replicate the issue, here's a Stackblitz with the template working https://stackblitz.com/~/github.com/kouts/vue3-ts-vite-starter-template