My program wont run

I am trying to make something simple to use personally but when i try to preview it keeps saying server timed out.

1 Like

Hi there - can you share the name of the project so we all can see the error in action?

1 Like

the link to the actual site is: mybetterbank.glitch.me

1 Like

I don’t see any issues when I go to the page - what does the error look like and say and what did you need to do to get to that error? Was it within the editor, were there any errors in the logs?

1 Like

seems fine to me.

1 Like

try this one: https://mybetterbankv2.glitch.me/
Let me know if it even loads for you because i cant figure out what is wrong

1 Like

It’s not loading. Do you see any console logs? You can toggle logs in the editor by pressing “LOGS” in the bottom menu.

Something obvious from looking at your project code is that package.json doesn’t have a node version:

1 Like

So I took a look at the code and in the logs section you are getting this error (or errors):

internal/modules/cjs/loader.js:638
    throw err;
    ^
Error: Cannot find module 'mongoose'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/app/server.js:3:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)


I don’t program NodeJs, but this seems like a cause that would make it load forever and ever.

1 Like