Html – I cannot understand how the pathing system works
I am very confused with how the pathing is supposed to work in my project. I have two folders in my main root folder - by root I mean the one I have open in VS Code which is called…
I am very confused with how the pathing is supposed to work in my project. I have two folders in my main root folder - by root I mean the one I have open in VS Code which is called…
I am using email, password and username to register user and storing in mongodb. I want to use next Auth to store sessions at time of registration also. I want to redirect user in same way at registration in same…
How do I deploy a Nodejs, Express.js with Typescript app on Vercel? It's giving me an error "404: NOT_FOUND" , My index.ts file is there inside my src folder. What is the proper way to do this? vercel.json: { "version":…
I am new to Javascript and am using Express to make a REST API for the backend of a project I'm working on. However, for some reason, either the API returns undefined or the fetch statement in my main.js file…
I wanted to write a Api that calls every minute in my application. I have tried the scheduler in firebase but in wanted to write it in my application. please find the solution for this problem. that would be helpful.…
I am trying to send a object from react to express using fetch api. I have added the data to post request. the express server is unable to receive any request made to it. React Code: const sendData = async…
node.js server app.post('/create-checkout-session', (req,res) =>{ console.log(req.form); console.log(req.body); const session = await stripe.checkout.sessions.create({ line_items: [ { price: "price_id", quantity: 1, }, ], metadata: { id: 1, email: "soubhagya", }, mode: "payment", success_url: `https://www.youtube.com/?success=true`, cancel_url: `https://www.youtube.com/?canceled=true`, }); res.redirect(303, session.url); }) React frontend…
I'm using node & express to make a server but for some reason the error occurring in a router does not get handled & crashes the entire server: Server.js: import SubRouter from './routes/SubRouter.js'; import express from 'express'; const server =…
Here is the code: // the JSON of req.body { "title": "title", "reference": "1213", "noteType": "type_1", "tags": [3, 4], // Will be variable length. "text": "Lorem ipsum dolor sit amet." } // Create the row and get the id const…
I'm trying to build an AI image generating website using MERN and I got this error: The requested module 'openai' does not provide an export named 'Configuration'. file:///C:/Users/Rashmika%20Satish/ai_website/server/routes/dalleRoutes.js:3 import {Configuration, OpenAIApi} from 'openai'; ^^^^^^^^^^^^^ SyntaxError: The requested module 'openai' does…