Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash of lacking App.vue #15

Open
Bader-Idris opened this issue Nov 2, 2024 · 1 comment
Open

crash of lacking App.vue #15

Bader-Idris opened this issue Nov 2, 2024 · 1 comment

Comments

@Bader-Idris
Copy link

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
Copy link
Owner

kouts commented Nov 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants