Ask coding questions

← Back to all posts
Problems With HTML Repls
ANDREWVOSS (187)

Whenever I try to use the preview on one of my HTML repls, I just get this:

Any ideas why this happens?

Answered by Coder100 (18208) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (18208)

yes sometimes that happens try forking the repl, and hard refreshing.
also try opening in a new tab.

ANDREWVOSS (187)

@Coder100 Okay, I'll give it a shot

ANDREWVOSS (187)

@Coder100 Didn't work :( guess I'll just have to wait

Coder100 (18208)

rip
not even in the new tab?

@ANDREWVOSS

it works for me

ANDREWVOSS (187)

@Coder100 The new tab works for me too now, it's just the preview that's broken

Coder100 (18208)

yeah
i think because they run on different servers
and that one is just down @ANDREWVOSS

OldWizard209 (1543)

It is because you are getting this error:

SyntaxError: Identifier 'proxy' has already been declared
    at /script.js:29:5

Remove this from line 29:

let proxy = URL.createObjectURL(new Blob([`
	self.MonacoEnvironment = {
		baseUrl: "https://unpkg.com/[email protected]/min/"
	};
	importScripts("https://unpkg.com/[email protected]/min/vs/base/worker/workerMain.js");
`],{ type: "text/javascript" }));

It should work hopefully

EDIT: nvm, it works:

ANDREWVOSS (187)

@OldWizard209 The repl works now, but the preview is still broken. Oh well, have an updoot :/

OldWizard209 (1543)

Press the run button. Then wait and you will see the preview. Or just click this button to see the full website:
@ANDREWVOSS

ANDREWVOSS (187)

@OldWizard209 The run button is stuck on loading... for me

OldWizard209 (1543)

you have to refresh the page. I don't see why this is happening only for you. Try forking the repl. @ANDREWVOSS

ANDREWVOSS (187)

@OldWizard209 I've refreshed the page more times than I can count. At this point the problem is either with my computer or with replit's servers

ruiwenge2 (606)

i think you just have to wait

ANDREWVOSS (187)

@ruiwenge2 D: It's been going on for almost 90 minutes now

ruiwenge2 (606)

@ANDREWVOSS oh... but at the run button i see loading

ruiwenge2 (606)

@ANDREWVOSS it doesn't show that for me

ANDREWVOSS (187)

@ruiwenge2 That's weird. When I open the repl, the run button says loading and gets stuck

ANDREWVOSS (187)

@ruiwenge2 It's happening on all of my HTML repls