94 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
63
views
Microsoft Entra ID login shows "Access Denied – You do not have permission to sign in" with NextAuth v5 (Auth.js) and Next.js 15
I’m integrating Microsoft Entra ID authentication using Auth.js / NextAuth v5 (beta) with Next.js 15, but after clicking Sign in, I get the following error screen:
Access Denied You do not have ...
0
votes
1
answer
57
views
When upgrading to React 19 and NextJS 15, jest snapshots that had header changes via `next/head` break
In our tests, we had several snapshots that included content wrapped in next/head. We had previously followed the below pattern for the mock, which allowed us to see all the header tags like meta, ...
0
votes
0
answers
26
views
Next.js not showing loading.tsx while static route is loading
Other similar questions didn't solve my problem. I have a route like:
export default async function PromptListPage() {
const prompts: PromptListItem[] = await fetchPromptsFromDB();
return (
&...
0
votes
0
answers
37
views
How to Implement Optional Route Parameters in Next.js 15.5.0 App Router Without Making Them the Last Segment?
I'm developing an application using Next.js 15.5.0 with the App Router. My desired URL structure is:
/[locale]/[workspace] (without a project)
/[locale]/[workspace]/[project] (with a project)
...
0
votes
0
answers
15
views
If cacheTag is used inside a forEach loop, will the returned data be cached within that functional scope? (Next.js 15 Canary)
I am currently using the Canary version of Next.js 15 to develop a project under the guidance of an instructor. I understand the general concept of using cacheTag to cache returned data. However, I am ...
1
vote
0
answers
67
views
Next.js 15.5:"Cookies can only be modified in a Server Action or Route Handler" when trying to set cookies inside a TypeScript Axios library
I’m developing a TypeScript library that handles authentication using Axios.
The library automatically refreshes tokens (access_token and refresh_token) and needs to save them in cookies so the user ...
0
votes
1
answer
79
views
AWS Amplify Gen 2 runtime env vars not available at SSR, causing undefined errors
Major issues
I have a Next.js application that previously ran without issues on Vercel. However, upon deploying it to AWS Amplify, I encountered a 500 Internal Server Error. Based on the CloudWatch ...
0
votes
0
answers
454
views
How to send file input (PDF/Excel) to OpenRouter Chat Completions API?
I’m building a Next.js API route to connect with the OpenRouter Chat Completions API.
For text-only messages, everything works fine. For images, sending them as image_url also works:
content: [
{ ...
0
votes
0
answers
42
views
loading.tsx and React Suspense are not triggered for _rsc requests in Next.js 15.2.1
I'm using Next.js 15.2.1 with the App Router.
I noticed that when I navigate to a page, my loading.tsx file is not triggered, and neither is React Suspense, if the page makes an _rsc request.
For ...
1
vote
0
answers
135
views
Next.js error: Cannot read properties of null (reading 'parentNode')
I'm getting this error in NextJS (15.3.4) randomly while in dev mode, it often occurs when navigating from one page to another, but I can't seem to reproduce consistently. It seems like an issue with ...
0
votes
1
answer
85
views
Clerk + Sanity integration issue w/ Next.js
Using Next.js (15.2.4), Clerk Auth, and trying to integrate Sanity as a CMS into the application. After installing Sanity and hitting /studio, this error appears:
Error: Clerk: auth() was called, but ...
0
votes
0
answers
45
views
Handling Invalid Login Errors in AWS Cognito with Auth.js (Formerly NextAuth) using SRP Authentication Flow
I'm working on creating a custom login and sign-up page using AWS Cognito with the SRP (Secure Remote Password) authentication flow. For handling the session, I’m using Auth.js (previously NextAuth), ...
1
vote
1
answer
128
views
The parent DOM element of the datagrid has an empty height [duplicate]
After I recently upgraded my MUI X packages. I see the following error:
MUI X: useResizeContainer - The parent DOM element of the Data Grid has an empty height.
Please make sure that this element has ...
0
votes
0
answers
207
views
How to correctly configure eslint-plugin-import in Next.js 15 with TypeScript and path aliases?
I'm working with a Next.js 15 project using TypeScript, and I'm trying to properly configure eslint-plugin-import to work with path aliases (like @/), as well as import sorting and unresolved path ...
0
votes
0
answers
23
views
Programatically run next build and next start
I have a application configuration page that would save certain parameters for the site in the .env. At this point point the application needs to be rebuilt, but I dont want to have to go the server ...