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

pnpm安装且编译成功,但运行时报错,识别不到@vitejs/plugin-vue #54

Closed
leelynnjaytop opened this issue Apr 11, 2024 · 1 comment

Comments

@leelynnjaytop
Copy link

报错详细信息:

ERROR 15:39:33 [vite] Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files.
Plugin: vite:import-analysis
File: C://vue3-h5-template-master/vue3-h5-template-master/src/components/NavBar/index.vue:2:155
1 | /* unplugin-vue-components disabled */import { NavBar as __unplugin_components_1 } from 'vant/es';import 'vant/es/nav-bar/style/index';
2 | import __unplugin_components_0 from 'C://vue3-h5-template-master/vue3-h5-template-master/src/components/SvgIcon/index.vue';
|
^
3 | import { defineComponent as _defineComponent } from "vue";
4 | import { useDarkMode, useToggleDarkMode } from "@/hooks/useToggleDarkMode";

@yulimchen
Copy link
Owner

麻烦提供更多环境信息,试下把项目 clone 到其他盘符目录下运行。

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