Error when running React app
I've cloned a repo from Github which is a React app. However when it is imported here it says its a bash project. Is there any way to change that?
Also, when i run it an error occurs which says: "unable to run, main file "main.sh" not found" which I presume has to do with repl.it considering this a bash project.
Any ideas how to resolve this?
you can change the config in the
.replit file or
config.json also when you cloned it gave you a place to put the langauge and the run command. if changing the language doesnt work, you can just do a run command in the
.replit file with
run = "your run command here (for example node index.js)"
Thanks, I've changed the run script to "npm start" and it seems from the output that the command is working. It says "compiled successfully" but I can't access the site:
Edit: Its not my project and when I run it locally on Webstorm it works fine. However I'm using a computer now where I can't install Webstorm.