Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Vitest Won't Parse Vue Files - Nuxt
N
Nuxt
•
6mo 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
.
Nuxt
Join
Nuxt Community Chat Server
31,817
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Nuxt UI v3 vue only x vitest
N
Nuxt / ❓・help
11mo ago
Nuxt 3.15.4 vitest 3.0.8 not reporting coverage for .vue files
N
Nuxt / ❓・help
11mo ago
Typescript autocompletion in ".vue" files "broken"
N
Nuxt / ❓・help
14mo ago