42,267 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
16
views
Next.js 15 Build Error: "Parsing ecmascript source code failed" on JSX in client context file
I’m using Next.js 15 (App Router) and trying to create a simple React context.
But the build fails with a parsing error before even running.
Error:
Build Error
Parsing ecmascript source code failed
./...
0
votes
0
answers
21
views
Chakra UI v3 className="dark" not overriding color mode
The Chakra UI docs, https://chakra-ui.com/docs/styling/dark-mode, state the following:
To force dark mode, set the dark className on any parent element, or the root element of your application.
<...
0
votes
0
answers
41
views
React icon not updating when isDarkMode state toggles
I'm having a bit of a weird issue with react. My component is supposed to display 1 of 2 different icons based on isDarkMode boolean. However for some reason it doesn't change the icons even though ...
-1
votes
0
answers
32
views
Error connection to database Next.js + Prisma + Supabase (Russia)
I need help with my Next.js + Prisma + Supabase application. I'm constantly getting database connection errors on localhost (error codes P1001, P1017), even though I've already changed the connection ...
-2
votes
0
answers
21
views
Trouble Integrating VAPI Voice AI Agent with Custom Prompts in Next.js Project [closed]
I'm building a Next.js project where I want to use VAPI Voice AI to conduct voice-based job interviews. My goal is for the AI agent to ask custom, dynamically generated interview questions from Gemini ...
-1
votes
0
answers
25
views
How to securely implement refresh token rotation in Next.js (without storing tokens in localStorage or global state)? [closed]
I'm building a Next.js app that uses access and refresh tokens stored in httpOnly cookies (not in localStorage).
My setup works mostly fine, but I want to make sure my refresh token logic is ...
-4
votes
0
answers
35
views
Next.js v15 — Choosing Between Client and Server Components to Optimize Vercel Hosting Costs [closed]
I'm developing a dashboard application using Next.js v15.5, and I plan to host it on Vercel. As with most cloud platforms, estimating costs accurately is crucial.
Right now, I'm trying to decide ...
-2
votes
0
answers
49
views
How to update only one record in an infinite query after a mutation without refetching all pages? [closed]
I’m using React Query v5 in a Next.js (App Router) project with an infinite query to load paginated user data.
Each page contains around 10 users. The query is implemented with a useLoadMoreData hook ...
0
votes
0
answers
32
views
Google Rich Results: Missing field image, description, and invalid price in Product structured data
Problem Description:
I have a Next.js / React product page where I tried to generate JSON-LD structured data for Google Rich Results like this:
<script
type="application/ld+json"
...
-1
votes
1
answer
36
views
CommandList does not behave display consistently even if there are records returned from API [closed]
I am implementing a design that would search for records (via firstName, masterId which is a guid of a record, and email).
API is called on input onValueChange, I used debounce to start the call after ...
0
votes
1
answer
56
views
How do I use the built-in MCP server in Next.js 16 and configure next-devtools-mcp?
I'm exploring the new MCP (Model Context Protocol) server introduced in Next.js 16, and I’d like to understand how to properly enable and use it in a development environment.
What I’ve done so far:
...
0
votes
0
answers
54
views
create an new app with the latest version of nextjs
I recently wanted to create a new nextjs project, so I used:
npx create-next-app@latest my-app.
I cd'd into the my-app folder and hit yarn to install dependencies, and starting the project produced an ...
-3
votes
0
answers
35
views
How To Use React-Pdf in Next-js Pages Route v15.5.6 [closed]
I'm trying to use the react-pdf library in nextjs pages route but I can't use it because nextjs is based on server side rendering where react-pdf requires a pdf worker which is only available in the ...
0
votes
1
answer
46
views
NextAuth Google Login Redirect to Localhost instead of Production Domain
I am doing a project which will use Google Login in NextJs
This is my setting in OAuth 2.0
and in amplify environment variables
After I deployed the app and try to login
It redirect me to http://...
0
votes
0
answers
38
views
How to persist data using PrismaAdapter and Authjs
I am trying to persist user data using PrismaAdapter with authjs. But getting following error.
[auth][details]: {}
[auth][error] SessionTokenError: Read more at https://errors.authjs.dev#...