© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Vitest Won't Parse Vue Files - Nuxt
N
Nuxt
•
8mo ago
•
5 replies
CLarsen
Vitest Won't Parse Vue Files
I
'm getting this error when trying to execute a test
.
Error
: Failed to parse source for import analysis because the content contains invalid JS syntax
. Install
@vitejs
/plugin
-vue to handle
.vue files
.
I installed
@vitejs/plugin-vue
@vitejs/plugin-vue
to my dev dependencies
, but it
's still gives me the same error
. On top of that
, when running the app in dev mode
, it has no problem parsing the
app.vue
app.vue
file
.
Recent Announcements
Similar Threads
Nuxt UI v3 vue only x vitest
N
Nuxt / ❓・help
12mo ago
Nuxt 3.15.4 vitest 3.0.8 not reporting coverage for .vue files
N
Nuxt / ❓・help
13mo ago
Typescript autocompletion in ".vue" files "broken"
N
Nuxt / ❓・help
16mo ago