43,334 questions
0
votes
0
answers
7
views
How to keep Strapi content available when working with GitHub and avoid 403/404 errors in a Next.js frontend?
I'm working on a full-stack project using Strapi and Next.js
After pulling the changes from github I can see the structure but I don't see the content they created (i.e. the entries), and my frontend ...
0
votes
0
answers
5
views
Jest's idk how to name issue. SyntaxError: Unexpected token 'export'
I'm trying to write a unit test for a React component InputText.tsx using Jest.
import type { CFIDC_InputText_Base } from '@tsLF/pages';
import { CFIDCTypeBasedStrategyFn_InputText } from '@tsLF/...
0
votes
0
answers
10
views
setState() is not updating state of an array in a specific case
I'm working on a Next.js website.
I've created a stack of cards that shows the details of some persons. And I'm using useState to update the card on top when the card is dragged by the user.
const ...
0
votes
1
answer
42
views
Reloading with frequent clicking on the Profile button
When I click on the profile link multiple times, the page keeps reloading and sending lots of requests before finally redirecting to the profile. How can I prevent the page from reloading and make it ...
-4
votes
0
answers
20
views
Should I use a monorepo architecture for a MERN web app and a React Native mobile app? [closed]
is it a good fit to use turbo repo ?
a single repo both the react native and nextjs application ?
will be good for long run project idea ?
recently i tried building this application which is based on ...
0
votes
0
answers
11
views
Rechart for customized dot position in linechart
How can I dynamically position the dots in the exact center of each square, regardless of the data size? As the data increases, the squares shrink, and as the data decreases, the squares expand, but I ...
1
vote
0
answers
22
views
nextauth unable to do next build with error o is not a function inside [...nextauth]/route.js
When I am trying to do next build to prepare my application for production, the next build script always stuck at collect page data, with the following error:
TypeError: o is not a function
#13 89.81 ...
0
votes
0
answers
16
views
Next.js Prerendering Error: "Invalid URL" in /_not-found Page During Build
I am deploying a Next.js project to Vercel and encountering a build failure related to the /_not-found page during the static generation process. The error appears to be triggered by an invalid URL ...
0
votes
0
answers
20
views
How to check if uploaded file pdf/doc is corrupted or not in next.js CSR?
I have a one requirement where i need to share the files at back-end need to put validation that file should not be empty or corrupted.
For the empty file i am able to detect based on size but to ...
0
votes
0
answers
32
views
Improve large number of parallel calls to blob service due to Promise.all
I tried to implement image upload using BlobStorage feature from Azure. I have a method on my Next.js frontend that calls backend to create unique blob urls for the user added images once they ...
0
votes
2
answers
53
views
NextJS not loading assets (images, css, js)
I am trying to deploy NextJS to Azure App Service but somehow the assets are not loading. I did try to run a production build on my local computer and it works well.
After CI/CD completes all files ...
-2
votes
0
answers
30
views
How can I solve this Next.js hydration error?
Here's a typical Next.js hydration error. I've started understanding each of them as they are for "security reasons". Now this one, what can I do? Why does React parse w-full h-fit and ...
1
vote
1
answer
34
views
Dynamic SVG Components within a dynamic SVG component. Renders one component for all
Overivew: The user can click on a AVpanel from the list and the panelviewer is called to display that panel svg along with the various labels/modules.
In theory, this is working perfectly. It loads ...
-2
votes
0
answers
15
views
Reddit blocks my fetch request when trying to deploy app [closed]
Fetching a search result from Reddit works when I run my Next JS 15 app locally, but when trying to deploy it to Vercel, I get the error 'Blocked' from Reddit. I can't figure out why.
This is the code:...
1
vote
0
answers
25
views
Next.js docker behind nginx, css and js not loaded
I'm running the next 15 as a Docker container behind an Nginx reverse proxy. The website is working as expected in my local network from Docker, but if I expose it via an Nginx proxy, I don't get the ...