Please help me dashboard error

html
javascript

#1

Hello I’ve taken a bug that I’ve done I want to make the dashboard from the glitch to the discord botum but I got an error and can’t solve the error :

Error: Failed to lookup view "/app/dashboard/templates/index.ejs" in views directory "/app/views"
    at Function.render (/rbd/pnpm-volume/5e41c431-addd-416c-9c96-154dd68380bf/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/application.js:580:17)
    at ServerResponse.render (/rbd/pnpm-volume/5e41c431-addd-416c-9c96-154dd68380bf/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/response.js:1008:7)
    at renderTemplate (/app/modules/dashboard.js:78:9)
    at app.get (/app/modules/dashboard.js:128:5)
    at Layer.handle [as handle_request] (/rbd/pnpm-volume/5e41c431-addd-416c-9c96-154dd68380bf/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/router/layer.js:95:5)
    at next (/rbd/pnpm-volume/5e41c431-addd-416c-9c96-154dd68380bf/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/rbd/pnpm-volume/5e41c431-addd-416c-9c96-154dd68380bf/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/rbd/pnpm-volume/5e41c431-addd-416c-9c96-154dd68380bf/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/router/layer.js:95:5)
    at /rbd/pnpm-volume/5e41c431-addd-416c-9c96-154dd68380bf/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/rbd/pnpm-volume/5e41c431-addd-416c-9c96-154dd68380bf/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/router/index.js:335:12)

PLS HELP ME


MOD EDIT: formatting


#2

Hey @ProRehber, welcome to the Glitch forums!

That error message seems to indicate that you’re including a file using an incorrect path. I suggest reviewing the path to the index.ejs file (seems like it might be defined in modules/dashboard.js) to make sure it’s correct.

If you provide us with your project name someone might be able to provide more specific guidance.


#3

Hello first, thank you for answering me @cori

My project name: prorehbertr-dashboard

I would be very grateful if you could help


#4

@ProRehber Can you provide me with your discord name and tag, I would like to talk to get help from you with somethinh! :slight_smile: