Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node webpack dev server failing 'Cannot GET /' in vuejs project

Tags:

node.js

vue.js

I am getting a super unhelpful message 'Cannot GET /' printed to my browser when I run my node dev server through webpack. I am building a Vuejs application with the following:

  • VueJs structured in a way that was dicated by this Vue Template with my node scripts being identical to the default commands
  • Webpack config based on Vue Loader
  • Routes handled through Vue Router

I know this is not a great deal to go off but an idea of what is firing this error (Node? Webpack? Vue Router?) it would point me in the right direction and be greatly appreciated.

like image 519
nickspiel Avatar asked Jul 06 '16 23:07

nickspiel


1 Answers

If you're experiencing this with Vite, make sure you ran just vite in your package.json script, NOT vite preview

like image 120
walnut_salami Avatar answered Sep 18 '22 14:09

walnut_salami