Problems with hbs

So I’m trying to make it so it display a profile when u go to the endpiont /user/username the only one regestered is koalastrikermi but it’s throwing an error that it can’t find the hbs file that’s supposed to be rendered plz help

Hey @Koalaknightmi I took a brief look but didn’t see any error messages either in the project’s console or on the page there. Can you provide the error message you’re seeing - that might be useful to someone trying to help.

yeah sry i just had rewound it to the point where everything else worked now im adding the stuff for hbs back rn

you see i wanted it to work so that when u go to the link it displays a profile like page but currently when u visit that link its saying
Error: Failed to lookup view “user” in views directory “/app/views”
at Function.render (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at ServerResponse.render (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at User.findOne.then.user (/app/server.js:288:9)
at tryCatcher (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at Promise._settlePromiseFromHandler (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at Promise._settlePromise (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at Promise._settlePromise0 (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at Promise._settlePromises (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at _drainQueueStep (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at _drainQueue (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at Async._drainQueues (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at Immediate.Async.drainQueues [as _onImmediate] (/rbd/pnpm-volume/eb5b036c-82b3-497e-9d05-ce2a5a9d85e1/node_modules/
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)

ok fixed idrk what i did to fix it but i guess it worked

1 Like