1👍
✅
You’re mixing the frontend and the backend, it’ll not work. The Vue is part of the front, so it needs to be imported at the index.html
so there you can use the new Vue
and so on. I recommend you to use the Vue-CLI to begin a project, It’ll set the dependencies for you so you won’t need to set a web-server manually.
2👍
Vue is a client side framework that needs to be running on the webpage you are serving, not on the node client that is serving it.
If you are trying to do server side rendering for Vue, you’ll want to follow the guide for that.
Source:stackexchange.com