bst365体育投注网址大全

Questions tagged [express]

Express is a flexible Node.js web application framework, providing a robust set of features for building web applications.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

React axios package triggers the catch block but the error.response is undefined

I have a react project containing a java script file. The issue is that when I use postman with same URL and same post data I get the expected output but when I use it from this file it triggers the ...
0
votes
0answers
18 views

Using ES6 modules in Express

Is there a way to write my code using ES6 modules in Express app; without reverting to babel or @std/esm ? once I am committed to app.js of Express, I can't find a way to get out of it. This seems ...
0
votes
0answers
8 views

Getting passport.js to only require email and password

I'm a newbie, fresh off of Colt Steele's udemy bootcamp, trying to write my first fully-functional app for production. I'm working on user auth, and I'm having trouble with passport. It only let's me ...
0
votes
2answers
24 views

How can I fix Cannot GET error in express?

I got a problem while learning basic express concepts. In this piece of code, where I am setting the route to my data JSON file everything works fine and I see the data. app.get('/api/v1/tours', (req, ...
0
votes
0answers
6 views

Sentry.io in Express Starter Code Not Working in TypeScript

Is there a problem with the default sentry code for express? I pasted exactly from the docs but don't see events showing up in sentry. The app is being run with tsc-transpile-only && node app....
0
votes
0answers
23 views

Output data to the page from the database, node.js

Just started studying node.js, tell me how to collect all the necessary data from the database and pass it when loading the page? Or there is some other way, for example in the file .ejs is it ...
0
votes
0answers
12 views

Stripe - Uncaught (in promise) IntegrationError: Invalid value for stripe.confirmCardPayment

Console Error message: v3:1 Uncaught (in promise) IntegrationError: Invalid value for stripe.confirmCardPayment intent secret: value should be a client secret of the form ${id}_secret_${secret}. You ...
0
votes
2answers
20 views

How to retrieve documents stored in one to many relationship in Mongoose

I have 2 Schemas. Shop and Product. One shop can have many products. But I also have more than one Shop. Let's say I have 5 shops, and each of those shops have their own products. I am able to save ...
0
votes
1answer
11 views

Dynamic require() on node NODE_ENV with webpack

I am building a simple NodeJs Lambda with webpack. There is a dependent node_module using different configuration file based on NODE_ENV let config = require(`./${process.env.NODE_ENV ? process.env....
1
vote
0answers
12 views

Unable to get Cookie value

I have an expressjs, React and a parent app. The parent app calls POST /init, where a cookie is created to store a JWT generated by the parent app. The /init endpoint then redirects to my React App &...
0
votes
0answers
8 views

Babel transpilation reserved keyword 'package' error on Heroku

I'm working on a MERN stack app with Babel on the server side of things so that I can write ES6. I'm getting an error when I try to deploy to Heroku: "Unexpected reserved word 'package'" My ...
0
votes
1answer
21 views

How add middleware for 404 errors on express

setting app.use("/api/tobaccos", tobaccos); app.use(function(err, req, res, next) { console.error(err.message); }); api: router.get("/:id", async (req, res) => { console....
0
votes
2answers
28 views

Setting up express + react, CORS

Hey I'm trying to make work my express with react locally. I'm starting react on localhost:3000 and express on 4040 but somehow my cors doesn't work. I have allowed in my server.js all cors stuff: var ...
0
votes
0answers
17 views

How to update Password with new password on Reset Password

The GITHUB REPO i'm using code repository I'm trying to reset the user password on redirecting the user to reset password page. On the 1st Singup I'm hashing the password and salt is generated and ...
0
votes
0answers
10 views

How to create Models in Express.js

I am creating a new Project in Express.js, I have Installed all the required things, I am using Postgresql as a database in which I already have some tables in it which I want to use it in a project ...

15 30 50 per page
1
2 3 4 5
4405