ReactJS - Couldn't reach repl
When I run my ReactJS repl, the section that displays the HTML result say
Hmmmm.... We Couldn't Reach Your Repl Make sure your repl has a port open and is ready to receive HTTP traffic.
why??
Voters
SameeraMurthy
Solution
You need to wait a few moments for React to start up.
Wait till it says "Compiled Successfully!" in the console.
Don't forget to press the refresh button after you do this.
In src/index.js
, on line 5, delete
import * as serviceWorker from './serviceWorker';
This is because the file ./serviceWorker
doesn't exist.
Hope this helps.
mido7778
@SameeraMurthy
Thanks dude.
You just have a small problem.
You must have accidentally deleted
serviceWorker.js
or something, because that usually comes with the repl.No worries, serviceWorkers only speed up initial load times, it's not super big of a deal if it doesn't exist, many websites don't.
Remove this line:
src/index.js
if you will.@Coder100
It's work. Thank's so much.
yay! @mido7778