Question

In the tutorial where component was used, was there any main.js file to kickstart the program?

I have been following up with the tutorial (How To Generate a Vue.js Single Page App With the Vue CLI) which I found easy to understand, but I could not understand how this would work without the file (main.js). I would appreciate it if any one explain to me why we were ignoring this file.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @sarmadalsaadi,

The file should be generated automatically when you follow this step: https://www.digitalocean.com/community/tutorials/how-to-generate-a-vue-js-single-page-app-with-vue-create#step-2-generating-a-single-page-application

Have you run into a problem with it?