Skip to content
← Back to Community
Error when running React app
Profile icon
FredrikHarnevik

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?

image

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

Voters
Profile icon
israel1385
Profile icon
FredrikHarnevik
Comments
hotnewtop
Profile icon
MrEconomical

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)"

Profile icon
FredrikHarnevik

@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:

image

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.

Profile icon
MrEconomical

@FredrikHarnevik did you remember to install Webstorm in packages?

Profile icon
FredrikHarnevik
Profile icon
MrEconomical

@FredrikHarnevik repl has a package manager that you need to install packages with

Profile icon
SiyanZ

were you able to figure it out? please let me know the solution if you did