All Questions
2,807
questions
0
votes
0
answers
46
views
How can I handle file uploads in a React frontend with an Express.js backend and store the files in MongoDB?
I'm working on a full-stack web application using React for the frontend and Express.js for the backend. I need to implement a feature where users can upload files through a form in React, and these ...
0
votes
0
answers
27
views
Error saving meeting data: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
while parsing the data from server.js file into the db i am getting Error saving meeting data: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data this error.
in firefox ...
0
votes
0
answers
13
views
Angular applications, express.js server, sending an email via form on the front-end side
Error sending message:
Object { headers: {…}, status: 500, statusText: "Internal Server Error", url: "http://localhost:3000/invia-email", ok: false, name: "HttpErrorResponse&...
0
votes
1
answer
263
views
Show loading skeleton while waiting for image to be retrieved from server
in my Ionic app, I'm showing a list of real estate properties that have images and info such a title, price, etc.
While the content is being retrieved from the database, the app displays a skeleton ...
0
votes
1
answer
886
views
Trouble with CORS with Angular Http Request to Express REST API
I am currently working on an app made with Angular 2 and an API made with Express.
I'm struggling to make my Http request from Angular work as I receive CORS errors.
I have two different problems in ...
0
votes
1
answer
2k
views
Property '"disabled"' is incompatible with index signature
ias: "disabled"; required: false; }; disableRipple: { alias: "disableRipple"; required: false; }; color: { alias: "color"; required: false; }; tabIndex: { alias: "...
0
votes
0
answers
24
views
Why I am unable to access express js service through different or specific ip address
This is my backend code.
var port = normalizePort(process.env.PORT || '3009');
app.set('port', port);
var server = http.createServer(app);
const ip ='198.168.0.132'
server.listen(port, ip ,()=>{
...
1
vote
0
answers
532
views
Gulp 3.9 verion not compatibe with Node latest version
ReferenceError: primordials is not defined
The solution that worked is Upgrading the gulp version but it comes with another problem and that seems to be some changes in the v4.What exact version of ...
1
vote
1
answer
419
views
Verify access tokens from multiple front end apps (client ID) using okta-jwt-verifier
We have 2 front end apps(angular) using the same backend api. Is it possible to send in an array of clientIds, so we can verify access tokens generated from multiple applications?
const ...
1
vote
0
answers
45
views
Error occured while trying to proxy to: localhost:4200/auth/registerMe Gateway Timeout
I have a MEAN App running inside ubuntu virtual machine in my windows Computer.I run this using docker-compose up.Now the containers are running but when I tried to register the form it shows error
&...
0
votes
1
answer
62
views
Angular - MEAN Stack - Trying to check user password in postman, issue with "bcrypt.compareSync"
So I am trying to enable user authentication before adding jwt token and I am having an issue where the 'if' check is throwing the following error:
node_modules\bcryptjs\dist\bcrypt.js:265
...
0
votes
2
answers
38
views
MEAN Stack How to save data from radio type AngularJS form into MongoDB
I'm going nuts!
I have a multistep form to get information based on user choice. All of the choices are type = radio except name because it takes text as type. For that form, I've used AngularJS (I ...
1
vote
0
answers
27
views
Express combining two directories and changing the path
So I'm making an app with nodejs, express, and angularjs. I was following a couple of tutorials and decided to integrate into my project.
I have a index.html and there there is a button to create a ...
0
votes
1
answer
70
views
How would you replace page with HTML from Rest API response? (AngularJS/NodeJS)
We have a decoupled AngularJS (1.8) application and Node.JS serving it and we are trying to allow server-side rendering of a view.
From Node (added as a route, response is HTML):
if (req.query....
0
votes
0
answers
52
views
MEAN stack delete request has 404 not found error
My post request and list all request are working fine, but I have problem getting my delete request to work. I have tested in Postman, but still have error. I think my delete url is fine, I can ...