Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-4 votes
0 answers
21 views

Good day. I'm Asadbek from Uzbekistan [closed]

I'm working on ejs express project and why when i set url to route handler like /contract ejs is being rendered properly but when i set api like /all-org/contracts is not rendring properly. My routes ...
Asadbek Asadbek's user avatar
-4 votes
0 answers
27 views

One particular route not working in express js and ejs [closed]

I am new to express and ejs and was trying to make a notes app, everything else is going all right but this particular route /files/:filename isn't working at all don't know why. Here is my express js ...
Devansh's user avatar
1 vote
0 answers
37 views

Cannot get data with Mongoose .populate()

Listing schema : const listingSchema = new Schema({ title : { type :String, required : true, }, description : String, image : { type : String, default : ...
Priya 's user avatar
  • 11
-1 votes
0 answers
65 views

MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017

I'm having problem using mongodb. I downloaded as said in docs for debian (i'm using kali linux) and first day it was fine. Everything i did worked well. Now for second boot up it started giving me ...
Lobiani1's user avatar
0 votes
1 answer
78 views

How do I create charts on my javascript website using data from mySQL database. Using EJS front-end

I am making a website where I can enter data for golf course greens, and then analyze it. I am using express in my backend to route to my ejs pages. I am also using a mySQL database to store the data. ...
Ben Northridge's user avatar
0 votes
1 answer
35 views

How to create a item in the Todo list

When you make a new item on the todo list it makes a new row but when you make a second one instead of making a new item on the todo list it changes the previous one. How would you go around making a ...
TroglodyteTerry's user avatar
0 votes
0 answers
51 views

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (CORS request did not succeed). Status code: (null)

I want to deploy my node.js on vps. my project tech stack is node.js , express , peer.js and socket.io I deployed the project on server but cors blocked error occurs Picture of the error is I am ...
Syed Talal Jilani's user avatar
0 votes
0 answers
23 views

If i try to set src of an img variable that is not a valid url in ejs template, it throws an error [duplicate]

This is the code to fetch data from mongodb and then send it to ejs template to render. the data object is fetched correctly, I checked by console.log the data object,and there are no validators set ...
Rajneesh Bansal's user avatar
-2 votes
1 answer
47 views

Node js ejs variable not define issue

i am mern stack developer and i don't have any experience in this field. I have tried all method to solve the below problem but it gives error my template file is <!DOCTYPE html> <html lang=&...
GAMING WARRIOR's user avatar
0 votes
1 answer
21 views

trix autofocus issue on expreessJS/ejs

I'm building a blog, with NodeJS/Express, and use Trix editor to handle writing and editing the blog posts. while attempting to edit a post trix rich text area automatically fouces; not allowing any ...
Kenan's user avatar
  • 23
-1 votes
1 answer
41 views

Socket.io , CSS and UUID aren't working together?

I'm developing a project for real-time communication. I believe there is an issue with my server.js file that I was unable to decipher I therefore programmed it to use the uuid library to create a ...
Titan's user avatar
  • 3
0 votes
1 answer
51 views

Flash message not displaying after logging out

Log out route router.get('/logout', (req, res) => { delete req.session.returnTo; req.flash('success', 'Successfully Logged Out!'); req.session.destroy(); res.redirect('/home'); }) Route ...
Fatima sami's user avatar
0 votes
1 answer
38 views

Images are not loading in ejs file

When the request is made on /blog images are loaded in EJS file rendering to blog.ejs, but when the request is made on /blog/comment/add/:blogId the viewComment.ejs file loads but images don't. I have ...
jainyashit's user avatar
1 vote
1 answer
44 views

error in rendering a RESTful comments in ejs

when working with ejs and render a file of comments contains username and comment it only renders the username and the comments is not rendering at all index of comments const comments = [ { ...
Mena Makrem's user avatar
0 votes
1 answer
29 views

Reference error on register.ejs "loggedIn" is not defined, but its defined in the index.js file

The index.js file has loggedIn rendered as a variable for the ejs file but it keeps telling me its not defined: <ul class="flex items-center p-1 grow justify-end"> ...
Omar M's user avatar
  • 19

15 30 50 per page
1
2 3 4 5
193