Skip to main content

All Questions

Tagged with
0 votes
0 answers
54 views

Error: The default export is not a React Component in "/page"

I am getting this error after I moved my page.tsx from app directory to the group route that I created in the same app directory. The reason why I moved this home page to group route because I want to ...
Marccodes's user avatar
0 votes
0 answers
43 views

How to correctly and efficiently set up transitions between pages on a website

This is a server import express from "express"; import path from "path"; import fs from "fs"; import adminRoutes from './routes/adminRoutes.js'; import clientRoutes from ...
Air's user avatar
  • 203
2 votes
2 answers
56 views

Expressjs how to distribute static file loading depending on the path in the address bar

There is such a simple server import express from "express"; import path from "path"; import fs from "fs"; const __dirname = path.resolve(); const app = express(); app....
Air's user avatar
  • 203
1 vote
1 answer
59 views

middleware for authorization to perform certain actions

I have implemented an API that is protected by JWT authorization layer. So on each endpoint before calling it I check that the user has a valid token before proceeding. It works flawlessly. Now I want ...
Lelio Faieta's user avatar
  • 6,696
1 vote
0 answers
89 views

Why is my Node.js server returning a 404 error for valid routes? [duplicate]

I am building a Node.js server using Express, and I have defined a couple of routes like this: const express = require('express'); const app = express(); app.get('/api', (req, res) => { res.send(...
Drashti Chabhadiya's user avatar
9 votes
4 answers
10k views

TypeScript Error: No overload matches this call in Express route handler

I'm working on an Express.js application with TypeScript, and I'm encountering a type error that I can't resolve. Here's the relevant code: import express from 'express'; import Stripe from 'stripe'; ...
Val Labs's user avatar
  • 129
0 votes
0 answers
44 views

Error: Failed to Lookup View in Express.js (EJS), Can't Find My Template

I’m building a web application using Node.js and Express. I have set up routes and controllers for handling user dashboards, but I keep getting the error 'Failed to lookup view "user/...
sam's user avatar
  • 1
0 votes
2 answers
52 views

Why does my node.js server fetch files from a different location than what's in the url?

I have two websites on my Windows Server 2022 Datacenter (a VM on AWS). I set them up in sort of an unorthodox way. The first is at http://www.planetshah.com/pwv and the other is at http://www....
gib65's user avatar
  • 2,021
2 votes
1 answer
173 views

Is there a way to solve the Vehicle Routing Problem (VRP) using ComputeRoutes API?

I want to solve the issue of the Vehicle Routing Problem (VRP) using ComputeRoutes google API (API), as it is more clear and supports nodejs. I have already create the function with ComputeRoutes, the ...
Julian's user avatar
  • 21
0 votes
1 answer
606 views

How to Integrate a WordPress Blog Page into a Next.js Route with a Node.js Backend?

I have a Next.js project where I want to display a specific WordPress page for blog posts. For example, on the route blogs, I want to show a WordPress page containing blog information related to that ...
Pavan G R's user avatar
0 votes
2 answers
39 views

Why doesn't a relative route work in my routes.js file?

I am trying to make some code as reusable as possible, so it is easy to create a new version of the code to experiment with. Can anyone explain to me why this works; router.post('/baseline/auth/create-...
Leigh Christie's user avatar
1 vote
1 answer
114 views

How to make protected route work in node.js

I'm working on a MEAN stack application. Where the user logs in using google oauth so i created a google oauth middleware as a function and linked it in server.js like app.use('/protected',...
Gowri Shankar's user avatar
0 votes
1 answer
29 views

Issue with 'this' variable inside route.js when more than 1 steps are executed

I have a function inside route.js that takes parameter values from feature file and append the api url. Problem is I have more than 1 entries in 'Example' table in feature file, so the steps are ...
kkrfan1988's user avatar
0 votes
0 answers
33 views

Is webhook structure should be REST-API?

I have a webhook Server that get a requests from graph-api of whatsapp api, and all the incoming requests have only one route without any specification routeing. I looking for the best practices to ...
Meir's user avatar
  • 1
1 vote
0 answers
300 views

How to Process and Preserve Request Body in Next.js API Routes?

I'm developing a Next.js application with API routes. In one of my routes, I need to perform some pre-processing on the incoming request body (e.g., authentication, validation, parsing). However, ...
hafaiedhmehdy's user avatar

15 30 50 per page
1
2 3 4 5
121