Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
47 views

I have having issues in vercel and render deployment, but i have checked all instances but not happening i have check other answers also but it is not working. Are there any things which I can do for ...
Krishal's user avatar
0 votes
1 answer
648 views

I worked on my other system it works but when i installed the latest npm==10.9.3 and node==25.1.0, and next==15.3.3 it will pop out the following error and cannot render any web page. ⨯ [TypeError: ...
Chi-Yuan Li's user avatar
1 vote
1 answer
49 views

So I'm trying to build my Next.js project, which, for context, was being deployed without a problem, up until my main branch. When I then tried to implement mdx, with rehype and shiki, and tried to ...
Santiago Uribe Gil's user avatar
Advice
0 votes
0 replies
48 views

I'm building an HR Management System using: Backend: Laravel Frontend: Next.js Authentication(SPA): Laravel Breeze (already set up for backend) I'm a beginner in Next.js, and I’m a bit stuck on how ...
Shashi Kelum's user avatar
-3 votes
1 answer
69 views

The Situation Current Layout: The basic layout consists of a Header, a Left Navigation Bar (Sidebar), a Footer, and the Main Content Area. The Task: I'm building a Preview Dialog/Modal. Goal: When ...
SJW's user avatar
  • 1
0 votes
2 answers
42 views

devs! I'm trying to build a multilingual website based on Next.js(15.6) Node 22.21.10. Locally I have no issue with routing everything works as expected. Both lang versions are served as expected. (...
ultrapanam's user avatar
-1 votes
0 answers
72 views

import{ PrismaClient }from '../app/generated/prisma' I see red underline for this line in my vs code and also having a error "module can be found" something like that in my terminal. But it ...
Lamidu Rathnayake's user avatar
2 votes
3 answers
92 views

I'm working through the faust.js documentation to create a headless WordPress site with Next.js. I can't get past step two: https://faustjs.org/docs/tutorial/learn-faust/#2-set-up-headless-wordpress-...
Jillian Hoenig's user avatar
0 votes
0 answers
74 views

Problem Description: I am developing a Next.js application deployed on Firebase App Hosting. The application calls the Google Cloud Route Optimization API from a Server Action. Despite carefully ...
Maurizio Piredda's user avatar
-1 votes
0 answers
54 views

I want: Logged in users liked tracks in the order the user liked them. Tried: Use v2 API but i cant get OAuth to work without internal ID. User history to get dates user liked tracks on, doesnt ...
totoplz's user avatar
1 vote
1 answer
66 views

I’m using Next.js 15 with the App Router. I created an API route for a contact form, but when I submit the form, I get: POST /api/contact 404 My project structure: src/ app/ contact/ page....
ayushmaan mishra's user avatar
0 votes
0 answers
48 views

I’m using Cloudinary to upload documents (PDFs, ZIPs, etc.) from my Next.js app. The upload succeeds, but when I try to access the file via URL like: In the Cloudinary Media Library, it says: Access ...
Kenil Mangukiya's user avatar
0 votes
0 answers
169 views

I'm experimenting with Next.js 16's new Cache Components and Partial Prerendering (PPR) to build a product page that: Serves a static shell instantly (HTML for layout, header, footer) Streams the ...
Mina Golzari Dalir's user avatar
-1 votes
0 answers
60 views

export function useDebounce<T extends (...args: Parameters<T>) => void>( callback: T, delay = 300, dependencies: React.DependencyList = [] ): (...args: Parameters<T>) => ...
Dhruv Sharma's user avatar
1 vote
0 answers
61 views

I have a monorepo built with turborepo. Packages compilation works fine but there is an error when I try to build entire monorepo including my nextjs app. This is my package.json and tsconfig.ts of my ...
Korer's user avatar
  • 393
1 vote
1 answer
148 views

I'm using Next.js 16 with Cache Components (cache() from React) to deduplicate and cache database queries across layouts and pages. Here's my setup: // lib/data.ts import { cache } from 'react'; ...
Mina Golzari Dalir's user avatar
3 votes
2 answers
241 views

I'm using ShadCN UI, Radix UI with TailwindCSS v4. I noticed that Tailwind classes don't work unless I add !important. For example: <section className="bg-gray-100 !px-15 !pt-15 !pb-20 rounded-...
PerfDev.'s user avatar
  • 118
Best practices
0 votes
0 replies
51 views

I'm working on a Next.js 14 app with several dynamic routes (e.g., /product/[id]) that render product details from a large dataset (around 50k+ records) stored in PostgreSQL. I'm using ...
Mina Golzari Dalir's user avatar
0 votes
0 answers
52 views

I'm implementing authentication middleware with NextAuth.js in Next.js 15.3.2 using the App Router. The middleware compiles successfully but throws a runtime error when trying to access protected ...
Jose Zepeda's user avatar
6 votes
5 answers
5k views

I’m working on a Next.js + TypeScript project with a MySQL database using Prisma. I set up my configuration in prisma.config.ts like this: import { defineConfig, env } from "prisma/config"; ...
Amrita Pathak's user avatar
0 votes
0 answers
53 views

I’m using the Next.js App Router and trying to understand how rendering type is decided. In my page, I have both generateStaticParams() and a server component that fetches data: export async function ...
Muhammad Faisal's user avatar
1 vote
0 answers
22 views

Easypaisa integration returns "Request Rejected" instead of redirecting or processing payment this is title and I'm integrating Easypaisa Payment Gateway with a Next.js (App Router) ...
Mubashir Khan's user avatar
0 votes
2 answers
58 views

When trying to build a Next.js project, it hangs forever after outputting: ▲ Next.js 15.YY.ZZ - Environments: .env It won't make it to "creating optimized build" as described in other ...
Violet Rosenzweig's user avatar
1 vote
1 answer
88 views

I was working on Next.js 15 (App Router) and trying to integrate Server Actions with Zustand for client-side state management. // store.ts import { create } from 'zustand'; export const ...
Gnaneshwar P's user avatar
0 votes
1 answer
76 views

I have a Spring Boot Data REST project with the following classes @Entity @Data @Builder @NoArgsConstructor @AllArgsConstructor public class Product { @Id private String sku; @OneToMany(...
Michael Rynkiewicz's user avatar
-1 votes
1 answer
115 views

I am using Ringba (https://www.ringba.com/) for Dynamic Number Insertion (DNI) in my React/Next.js web app. Context Parts of my website have this structure to display a phone number to call: import ...
Charlie Brown's user avatar
4 votes
0 answers
137 views

I came across surprising hydration mismatch in a Next.js 15 App Router app when I synchronously instantiate a small WebAssembly module during the render of a client component. Server builds fine. On ...
Gnaneshwar P's user avatar
1 vote
0 answers
57 views

I am using Amplify and Cognito's hosted UI Login page to handle my user authentication. I am able to redirect to the cognito hosted page, enter my user credentials, and redirect page to my sign in ...
hankyypankyy's user avatar
0 votes
0 answers
207 views

I have recently migrated my project from react-hook-form (rhf) over to @tanstack/form and for the most part have really enjoyed the implementation. One issue I have encountered and cannot find a ...
frost2709's user avatar
  • 401
0 votes
0 answers
53 views

I'm using Next.js 14 with Server Actions and I'm tired of manually parsing and converting FormData values. Every action looks like this: 'use server' export async function createUser(formData: ...
toozuuu's user avatar
  • 11
0 votes
1 answer
52 views

I have a reader page where I show a floating toolbar after the user selects text. When the toolbar appears, the browser's native selection highlight (the blue/OS-specific highlight) disappears, making ...
jonah2xm's user avatar
1 vote
0 answers
54 views

Hey guys I have a next's project tied with supabase. And as auth system I use LinkedIn. const { data, error } = await supabase.auth.signInWithOAuth({ provider, options: { ...
David's user avatar
  • 512
0 votes
0 answers
54 views

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. <...
Paul's user avatar
  • 1
0 votes
0 answers
47 views

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" ...
Ronald Lion's user avatar
1 vote
1 answer
343 views

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: ...
Amirhossein Modirkhazeni's user avatar
0 votes
1 answer
388 views

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 ...
juztcode's user avatar
  • 1,433
0 votes
1 answer
61 views

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://...
EQ0920's user avatar
  • 124
0 votes
0 answers
56 views

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#...
himu73's user avatar
  • 75
2 votes
1 answer
80 views

I am new to programming (and NextJS) and I'm building a NextJS app, using Mongoose for my MongoDb connection. I was wondering if I should close the connection after each query? Right now I am just ...
Alex's user avatar
  • 13
0 votes
1 answer
32 views

NextJs + BetterAuth Why session token still has expiry date no matter what I do? Example of auth.ts: export const auth = betterAuth({ database: new Database("./sqlite.db"), ...
Dreamer64's user avatar
  • 1,253
0 votes
1 answer
88 views

I'm developing a project using Next.js 15.5.4 inside an Electron.js application, with the following stack: React.js Tailwind CSS SQLite On Windows 11, running npm run build (or next build) ...
Ignatius Chandra's user avatar
0 votes
0 answers
114 views

I have begun creating an application (Next.JS running on Firebase App Hosting) in Firebase Studio using Gemini and everything was working fine until now that I got a notification about "Client ...
Mikail Eryilmaz's user avatar
0 votes
0 answers
45 views

I have a request which its get wallet details in server action. First request is working properly. But after user changes, I can see log top of it but its not entering server action. For example: ...
Uğurcan Uçar's user avatar
0 votes
1 answer
60 views

I'm new to caching, if I understand correctly, with caching, a database query would only run once for a specific amount of time (e.g. 1 hour) until it's revalidated, but I read server actions are not ...
Morgana Freeman's user avatar
-1 votes
1 answer
120 views

I'm trying to use Prisma with neon/serverless from vercel. When I run npm run dev, I get this error message: Argument of type 'Pool' is not assignable to parameter of type 'PoolConfig'. Types of ...
KingSlayer3X's user avatar
0 votes
1 answer
106 views

Using the react-youtube package, I'm displaying a series of youtube videos on iframes. It works when the page is navigated from an outside url or on a page refresh. However, the videos don't load when ...
Daniel Mohebi's user avatar
0 votes
0 answers
113 views

We’re a small student-led open-source learning platform: "involutionhell" built by volunteers in our spare time. Our website uses NextAuth.js with a GitHub provider for authentication. ...
Loong Loong's user avatar
0 votes
2 answers
103 views

I have been using react query and next.js , I need to know how can achieve server side rendering using react query, I can achieve with this using normal fetch or axios in the server side components, ...
arjun tv's user avatar
1 vote
0 answers
33 views

I want to show some cool page spinner when navigating between pages so the spinner shows until page content is loaded, i have page.js, layout.js and loading.js under app/(home)/. but loading.js is not ...
Morgana Freeman's user avatar
1 vote
1 answer
83 views

I want to make a page start from the screen top to the bottom. That is the green area under the top status bar and bottom IP address bar. Here is the source code repository: https://github.com/...
William Hu's user avatar
  • 16.3k