All Questions
27,626
questions
-1
votes
0
answers
8
views
--watch/-w can be omitted, JSON Server 1+ watches for file changes by default [closed]
i have a problem when i use npm:
--watch/-w can be omitted, JSON Server 1+ watches for file changes by default
please helps me:<
i update node.js and changes content database.json but fail.i search ...
0
votes
0
answers
25
views
Link from react-router-dom is not redirecting
Since the button is within a <Link /> Component it shoul redirect to the '/home' page but it is not, its not redirecting anywhere. the function PostLogin is being Called i have confirmed
<...
0
votes
1
answer
28
views
The input in searchbar disappears when i click on any other space/part of the browser of when i click tab button
import React, { useState, useEffect, useRef } from "react";
import { useNavigate } from "react-router-dom";
import axios from "axios";
import Autocomplete from "@mui/...
0
votes
0
answers
12
views
'UserInput\01-starting-project\node_modules\.bin\' is not recognized as an internal or external command
'UserInput\01-starting-project\node_modules.bin' is not recognized as an internal or external command, operable program or batch file.
node:internal/modules/cjs/loader:1222
throw err;
Error: Cannot ...
-2
votes
0
answers
23
views
Why res.clearCookie() is not working after deploying to vercel?
First of all, everything works fine when running on localhost.
However, after deploying the app to Vercel when the user tries to log out it should clear cookies with res.clearCookie() but it doesn't ...
1
vote
0
answers
19
views
Two node_modules folders in a React and Tailwind project [closed]
I first installed React (with TypeScript) then added Tailwind to the project as it's documented on their website here and this resulted in two node_modules folders and two package.json files in the ...
1
vote
0
answers
17
views
Evaluate a user provided logic statement in React
I have a JS object. I need to validate that object against a condition / logic statement that was provided via a CMS.
let logicFromCMS = "user.properties.phone.length != 10"
if (...
-1
votes
0
answers
31
views
Get the langauge belonging to the given country
Using the node package: npm install countries-list, found here (where there is a bit of info on usage:
https://www.npmjs.com/package/countries-list
We have countries which gives us an object of all ...
1
vote
2
answers
22
views
Building react app with github actions then pushing build to digital ocean apps
I am trying to build my react app on github actions then deploy it to digital oceans app platform. It keeps building but doesn't seem to actually be making changes, here is my actions script. I'm also ...
0
votes
0
answers
12
views
Getting error while hosting MERN Project on AWS: .env file error
Upload the file on the aws ec2 instance using GitHub so after that I use pm2 to start the server file, but it shows an error that the server is running on an Undefined port and a mongodb error,
but ...
0
votes
0
answers
29
views
How to properly package a Node.js and React app stripping the container of all unneeded files?
I have a Node.js backend that serves up the React frontend (later I can do CDN probably) and for now, I plan on disallowing CORS so React must talk to my Node.js backend only. The prototype for this ...
0
votes
0
answers
17
views
Any IDE work with import typescript nodejs, react, libs correctly in monorepo style? [closed]
Let me give more context. In a previous monorepo, we could load any microservice in Intellij IDE (java based) and it would load the microservice and all libraries it depended on. Basically, we ...
0
votes
1
answer
69
views
Nodejs Server sent events reading undefined at the JavaScript front-end [closed]
I am working with mobile wallet gateway for user on a website pay for a service. I need to send every stage and what the server is currently doing all the way to waiting for user response that is ...
0
votes
1
answer
38
views
Getting 404 AxiosError: Request failed with status code 404
Could you please help me to solve the problem with the routes.
In result I have the next code:
// server/index.js
// server/index.js
const express = require('express');
const bodyParser = require('...
0
votes
0
answers
22
views
Return 403 forbidden in production env
I have issue when try to perform the api in production environment, but it works it my staging environment. This is my code for the api
import prisma from '../../../prisma/db';
export default async ...