import Vue.js in a project

48 views Asked by At

How can i import Vue.js in VsCode on existing project? I don't want to create a new project.I already have installed node.js also.

I allready have node.js and i tried with npm install -g vue-cli in the terminal it's installed but my app still doesn't work. It shows error in the console "Vue is not recognized". And also i have vue.js devtools on my browser and it's not detected when i open my app.

My code in my js file:

const upvoteApp = {};
Vue.createApp(upvoteApp).mount("#app");

error: Vue is not recognized;

0

There are 0 answers