Vue js 3 + vite + vue router deploy fail

Hi all,

I am trying to deploy a vite + vuejs3 + vue-router, the first deployment before installing vue-router works fine, but after installing vue-router and creating a route the deployment fails.

“name”: “vue-3-vite-netlify-template”,
“private”: true,
“version”: “0.0.0”,
“scripts”: {
“dev”: “vite”,
“build”: “vite build”,
“preview”: “vite preview”
“dependencies”: {
“vue”: “^3.2.25”,
“vue-router”: “^4.0.13”
“devDependencies”: {
@vitejs/plugin-vue”: “^2.3.3”,
“vite”: “^2.9.9”


Which of your 15 sites is experiencing this? Also I’d encourage you to search the forums with this error as there has been many proposed solutions.

Hi Sam,

Site: [],

This is the first time this has happened to me, I did a search on the forum but I didn’t find anything. If you have any reference.

Thanks for your help,

Hi Sam,

I have solved my problem, and I am sorry, but checking my repository in git I realized that the router folder did not exist but locally it did, for some reason it was not part of the commit when I did the deployment.

Ahh well thanks for coming back and sharing your solution!