vuetifyjs / create

🛠️ Build tooling for Vuetify 3
60 stars 18 forks source link

Failed to parse source for import analysis because the content contains invalid JS syntax #58

Closed tsantor closed 1 month ago

tsantor commented 1 month ago

I have successfully used Vuetify 2 in the past, but when trying to create a Veutify 3 project, I run npm create vue@latest. I cd into the app directory and run npm install, then I run npm run dev and when I visit http://localhost:3001/ I get the following:

[plugin:vite:import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
virtual:vue-router/auto-routes:5:128

I did not opt for Typescript during setup, just vanilla JS. Not of the generated files that get created are .jsx or .tsx.

node -v v22.3.0 npm -v 10.8.1

tsantor commented 1 month ago

Weird. Created a new terminal window and tried again, this time no issues.