Site didn’t respond (Perchance ai Image Generator)

Newbie to Glitch here,
Past couple of day I have been trying to finish the setup for my first project and I keep getting the error that the site didn’t respond. Trying to set this up for a text-to-image generator.


Nick M

Thought I’d include some error log, most seem to be as follow,


SyntaxError: Unexpected token at Module._compile (internal/modules/cjs/loader.js:703:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10) at Module.load (internal/modules/cjs/loader.js:628:32) at Function.Module._load (internal/modules/cjs/loader.js:555:12) at Function.Module.runMain (internal/modules/cjs/loader.js:826:10) at internal/main/run_main_module.js:17:11

have you renamed your project? I can’t access it.

1 Like

Hi Nick, generally when I see SyntaxError reported in files that are core to node.js like that, I assume that something is happening where the code is written for a different version of node.js than what it’s running on. Double-check your package.json and see if you’re specifying a specific node version in the engines section. Then compare it to the list of node versions Glitch supports and make sure it’s one of those; if those all line up then you may need to review any code you wrote that might be making use of features from newer versions of node.js.

Oks, first let me say I gave the wrong site should have been: (I’ll update the first post)

I’m trying to setup a Perchance txt-to-image generator site if that helps. Second seems my glitch package is 12.x and I’ll update it 16.x the newest version and see if that helps. specifically irt seems to start with the first line:

So I’m guessing the whole code is damaged and I just copied the code from Penchant.