Cant run vuejs project.
Hi, Could anyone help me with running the related vueJS project. It seems it errors. I honestly don't understand why. Any help would be muchly appreciated
Yeah, you forgot to add a run command!
In the root (not in the folder), add a
.replit file and put:
run = "cd vue-now-ui-kit-master ; npm run serve"
What this will do is actually run the commands required to host the app (by default it runs index.js which is cleary nonexistent here)
this is happening because you have a node js repl, and replit deafults to run a file named
index.js, in the home folder. What you have to do is configure the run button.
You have to create a file called
.replit. Make sure to name it only
.replit, nothing before the
.. And you have to put this code inside it:
run = "<file name here(make sure to put the main folder name also)>" language = "<repl language>" # optional
I can't really find a solution to this problem, so imo the best way to tackle this is to remove the folder, and just put the files in the main repl. Quickest way to do this is download a zip file, extract the file, and then put all the contents of the file into a new repl. Then name the main file
index.js. Sorry for answering so late, I was busy with a couple of things. @rohangroombridg