Error when running React app
Hi!
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?
/Fredrik
SiyanZ
were you able to figure it out? please let me know the solution if you did
you can change the config in the
.replit
file orconfig.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 withrun = "your run command here (for example node index.js)"
@MrEconomical
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.
@FredrikHarnevik did you remember to install Webstorm in packages?
@MrEconomical
Webstorm is https://www.jetbrains.com/webstorm/
@FredrikHarnevik repl has a package manager that you need to install packages with