3,865 questions
0
votes
0
answers
42
views
Docker bridge network hosts tls encryption
The basic idea is to get to a zero tolerance architecture. For which reason I intended to upgrade the communication between my hosts on my docker network with tls. I was thinking it would be easy. As ...
0
votes
1
answer
105
views
Angular 17: localStorage is not defined Error After Saving Changes and Browser Stuck in Reloading State
When i run project in angular 17 it runs successfully. However when i made some changes in code and save changes then:
The browser page stucks in a reloading state
Also this error shown up:
Error ...
1
vote
1
answer
1k
views
provideHttpClient "Type 'EnvironmentProviders' is not assignable to type 'Provider'. Error in Angular 18
I am working on an Angular 18 application and was getting errors from the deprecated HttpClientModule so I moved to provideHttpClient and keep getting the following error:
Type 'EnvironmentProviders' ...
2
votes
1
answer
69
views
MEAN project - Multer messes up request body
I am new to MEAN stack and I'm trying to create login and register functionalities where register includes profile photo upload. That's how I stumbled across the multer library.
Overall, after ...
0
votes
1
answer
41
views
Handling large amounts of data efficiently in a MEAN stack application while ensuring data consistency can be challenging
I am facing technical issues with handling a large amount of data in my MEAN stack application. To avoid repeatedly calling the API, I have implemented local storage to cache the data. If the same ...
0
votes
0
answers
44
views
CORS error continues on node.js even after importing the cors package
I have included the cors package tries the res.header and still getting the cors error
Access to XMLHttpRequest at 'localhost:3000/auth' from origin 'http://localhost:4200' has been blocked by CORS ...
-1
votes
1
answer
125
views
Page not displaying on Chrome MacOS
I have a website that is in production using the MEAN stack. One issue is that the chrome will display one of my new pages as a blank screen, even after I hard refresh. However, I can see the page in ...
0
votes
1
answer
48
views
Subscribe method not working in MEAN stack application
I have created a backend for my application and am now developing the frontend. I am trying to do the register component of my application.
This is my Register Component with me attempting to register ...
-1
votes
1
answer
182
views
How can I use hardware keys (Yubikey and Titan Key) with multiple applications?
I am developing a Saas application, that implements the 2 Factor Authentication feature, using hardware keys (Yubikey, Titan Key), using WebAuthn/U2F protocol.
The feature is working well for ...
0
votes
1
answer
93
views
MEAN Stack CORS error even after using CORS middleware
I am working on an Angular app with NodeJs backend and I am getting CORS error even after using CORS middleware. Have a look at my code:
var mysql = require('mysql');
const fs = require('fs');
const ...
0
votes
1
answer
633
views
MEAN STACK ,"Error in Postman : Username or password is invalid! "
I am beginner in mean stack development and i am trying to run "api/users/login" in Postman it is showing "Username or password is invalid!". And when i am run "register/users/...
2
votes
6
answers
68
views
How to Filter MongoDB Data Based on Array Values?
I have a document in a collection which have values in array.
{
"name": "ABC",
"details": [
{"color": "red", "price": 20000},
...
0
votes
1
answer
96
views
why i can't test ionic app with android studio
i created an ionic capacitor app for the front end using angular and the backend with express node and mongodb, with cookies to storing the jwt , with testing the app with ionic serve in localhost it'...
0
votes
1
answer
43
views
Ajax isn't fetching the text file
<!DOCTYPE html>
<head>
<title>
Ajax Joke of the Dya application
</title>
<script>
var Request = false;
if (window.XMLHttpRequest) {
...
0
votes
1
answer
2k
views
MongoDB Atlas Search not showing results when typing few characters
The problem I am facing is that I want to develop an autocomplete search bar using Mean Stack like the one in this site, but when I type, for example, 'ag' it's not returning the right location that ...
-2
votes
2
answers
789
views
Choosing the right EC2 instance for three NodeJS Applications
I'm running three MEAN stack programmes. Each application receives over 10,000 monthly users. Could you please assist me in finding an EC2 instance for my apps?
I've been using a "t3.large" ...
6
votes
1
answer
8k
views
ngrx error "Module '"@ngrx/effects"' has no exported member 'Effect'"
I trying to implement an effect in ngRx. I import ted "Effect" from "@ngrx/effects", but It showing the error "Module '"@ngrx/effects"' has no exported member '...
0
votes
0
answers
110
views
MEAN Stack http PUT request issue
i'm pretty new in MEAN STACK.
I make my API REST under Nodejs Express and mongoodb.
I use Angular 14 as client.
I made a little project where user can register / login / display user informations.
Now ...
0
votes
1
answer
597
views
Mongodb query Dates returning as String of numbers
for my MEAN stack project I have to store a Date object in MongoDB for the start and end of a booking. the Date goes in just fine, in my collection it's show as:
booking_start: 2022-12-16T00:00:00.000+...
0
votes
1
answer
298
views
connect mongodb remote server to node js app
I have to connect node js app running on local machine(laptop) to mongodb running on deigtal ocean vps.
I changed bindip in mongodb conf file.
from local machine(laptop) the mongodb connection uri is ...
0
votes
1
answer
77
views
Angular project component style don't want to display
i'm trying some css test on my project, but one of my component don't want to show his css.
This is my Angular structure :
my app.component.html
<div id="nav-bar">
<div id="...
1
vote
1
answer
304
views
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client MEAN stack [duplicate]
i'm trying on my API to set follow and unfollow function like social medias.
here is my user.controller.js follow function :
module.exports.follow = async (req, res) => {
if (!ObjectId.isValid(...
-1
votes
1
answer
4k
views
TypeError: Cannot read properties of undefined (reading 'x') [duplicate]
I am new to MEAN stack, and trying to get some basic posts. I am getting TypeError: Cannot read properties of undefined (reading 'title') when issuing post. This works when changing todo-route.js ...
0
votes
0
answers
100
views
Change user icon style, If the user is logged in. (Angular & Node.js)
I am trying to change a user icon to green when the user is logged in, with Pusher or with Socket.io.
I have managed to do so before, but it was with SignalR.
I am now trying to find an alternative ...
0
votes
2
answers
92
views
mongoose cant display private message data
I am pretty new with mongoose & node.js and I am having an issue with displaying my users messages privately.
The message recipient, sender and message content is stored in the database.
but when ...