Cannot response while sending from .ejs. Can anyone help?

I’m here to ask for help with my Glitch project; the problem is that my project’s website is still loading when trying to respond from a .ejs file (response.render()), and then it returns with “Site didn’t respond”. Other things like response.sendFile works fine. What do I do?

Here is the link: Glitch :・゚✧?

Welcome to the Glitch Community!

I believe that your project is failing to start because your package.json is missing the start script.
Update your package.json to be the following:

  "name": "alab318_2_1_building_an_express_application",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "nodemon app.js",
    "start": "nodemon app.js"
  "author": "Hannah",
  "license": "ISC",
  "dependencies": {
    "ejs": "^3.1.10",
    "express": "^4.19.2"
  "devDependencies": {
    "nodemon": "^3.1.0"
1 Like