Skip to content
← Back to Community
Run command in .replit file not running
Profile icon
programmeruser

In my repl above, I set the run command to build the JS file with React, but it isn't running. Is this intentional or is it a bug?

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
programmeruser
Comments
hotnewtop
Profile icon
Coder100

what do you mean it's not running? I see it getting built fine!

image

anyways, your code is wrong btw, you have to use set-state iirc.

Profile icon
programmeruser

@Coder100 that code is only there because I ran babel manually from the shell. I deleted it now, try pressing run now

Profile icon
Coder100
Profile icon
Coder100

no you didn't, I still see the dist @TheProgrammer3

Profile icon
programmeruser

@Coder100 I meant that I removed the contents of the file.

Profile icon
Coder100
Profile icon
Coder100

you are right, that is strange... @TheProgrammer3

Profile icon
Coder100

ok i think i know why @TheProgrammer3

Profile icon
Coder100

.replit files probably don't work well with HTML, I have seen this before, and you should -- unfortunately -- use the terminal @TheProgrammer3