All Questions
2,888
questions
-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 ...
-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 ...
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 :
...
-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 ...
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.
...
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 ...
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 ...
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 ...
-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=&...
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 ...
-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 ...
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 ...
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 ...
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 = [
{
...
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">
...