Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
620 views

getting a 404 error AxiosError {message: 'Request failed with status code 404'

im trying to run my frontend and server side app but im getting this error when i try to update my dog profile PUT http://localhost:8080/dog-profile/dogprofile 404 (Not Found) dispatchXhrRequest @ xhr....
Sufiyan Mustafa's user avatar
0 votes
0 answers
30 views

How can make my server calculate the result even after the user exits the website and store it to database?

So basically I am working on a react project with firebase as back-end and authentication. This project is a prediction platform where user registers and predicts whether gold price will go up or down....
Mr J's user avatar
  • 1
1 vote
1 answer
510 views

Why NEXT_DATA script in nex.tjs web app exposing my secret variables used on client side

I built and deploy a next.js web app in which I very carefully choose my environment variables and put them in the next.config.js file, and ignored them using gitignore file. Now when I opened the ...
TASKMASTER's user avatar
  • 1,061
1 vote
1 answer
3k views

How to use dispatch in nextjs getStaticprops or getServerSideProps

I am new to Next js, I want to call the news api in useEffect and dispatch the news array to my store. then filter it based on the user's input in the search bar in the header. problem is once the use ...
Alireza tk's user avatar
1 vote
1 answer
3k views

How to facade (proxy) websocket port

I have server side rendering react app in which i have proxied all http calls to different port. Please see the code below for http proxy. import proxy from "express-http-proxy"; const app = express()...
Trinu's user avatar
  • 1,759
0 votes
1 answer
1k views

Rendering a React element to its initial HTML

I'm trying to extract the initial HTML from react code on the server side. To do this, I'm using the official react-dom/server library function renderToStaticMarkup() referenced here: https://reactjs....
user avatar
0 votes
1 answer
6k views

React save temporary file

I have a base64 data in my react frontend, and I want to convert this to a img file (png, jpeg,etc) and save it to server side temporary folder (call it tmp). Ultimately, I want to generate a url www....
Chris Jeong's user avatar
1 vote
1 answer
1k views

TypeError: Invalid attempt to destructure non-iterable instance while using react-charts

I have rendered a react app using SSR (Servder-Side Rendering). I am using react-charts to display charts in react component, but this gives error stating: TypeError: Invalid attempt to destructure ...
TechSavy's user avatar
  • 1,420
5 votes
2 answers
8k views

SSR does not work when javascript is disabled

Referring to this ticket here: https://github.com/zeit/next.js/issues/4210 I'm currently wondering why when you disable javascript, most of the content using relay modern and NextJS does not work. ...
its.david's user avatar
  • 2,235
0 votes
0 answers
575 views

Render single react component instead of complete application from server

I went through many articles on server side rendering of react and the all of them has the following in common :- The server route renders a complete html page with a div which wraps the root react ...
Rishabh Jain's user avatar
8 votes
1 answer
5k views

React onClick event handler not working using Next.js

I'm making a Reddit clone and I'm using Next.js so its server-side rendered. I started without using Next.js and when I learned about it, I immediately switched to it. I've created a custom _app.js ...
Ibrahim's user avatar
  • 340
0 votes
1 answer
269 views

React - fetching the data before the render (best solution)

So, I have an app that user can choose several settings in. Like number format or a currency that will be displayed by default. For that there is a special API endpoint /settings that I get the ...
mdmb's user avatar
  • 5,331
4 votes
2 answers
7k views

How can I combine multiple loaders (CSS, LESS, ttf, etc) in NextJS config file?

I'm working on moving a React app to SSR using NextJS and per the docs, I'm using the CSS and LESS modules for Next. The problem is that it seems that only one works at a time. Some of the app still ...
Jay's user avatar
  • 317
1 vote
1 answer
166 views

how to utilize browser libraries in node backend

I'm developing a React App with server side rendering. In the client I'm using libraries that uses the document object, and so when I try to run my code in the server side node crashes since document ...
Alessandro Messori's user avatar
0 votes
0 answers
38 views

how to do Server Side Rendering React

I am working on a website which I want to render server-side. I am working on this but i am facing a lot many issues i even tried nextjs but with that I can't use react router. I tried other options ...
Aniruddh Agarwal's user avatar

15 30 50 per page