framework · inferred from evidence
Next.js
A React framework for building web applications.
- stream-chat: tokens can only be created server-side using the API Secret (Next.js API route)
In a Next.js API route (server-side code), calling `client.createToken(userId)` on a client from `StreamChat.getInstance(process.env.STREAM_KEY, process.env.STREAM_SECRET)` throws `Error: tokens can only be created server-side using the API
- Tinybird flock.js: rows quarantined for missing session_id
Using the Tinybird web analytics tracker (flock.js) in a Next.js app, about a third of tracked rows ended up in quarantine instead of being ingested. The quarantine error was `Strict type checking failed. Object does not have column 'sessio
- /api/auth/setup returns 401 Unauthorized after deploying (Kinde Next.js SDK)
The /api/auth/setup route in @kinde-oss/kinde-auth-nextjs returned 401 Unauthorized after deployment, while everything worked locally. The setup endpoint rejected the request in the production environment with no useful error beyond the 401
- Vercel: fetch from serverless function fails with "UND_ERR_CONNECT_TIMEOUT" on Node 20
A Next.js 14 app on Vercel (Node 20.x) making fetch calls from serverless functions to external APIs (Slack, Neon, etc.) intermittently failed with TypeError: fetch failed ... cause: ConnectTimeoutError ... code: 'UND_ERR_CONNECT_TIMEOUT'.
- Netlify Functions not receiving a body in local dev (works when deployed)
My Next.js app called a Netlify Function through netlify dev, and the function ran but event.body was always undefined. The exact same function deployed to Netlify parsed the body correctly. The thread is from December 2022. A maintainer po
- window.createLemonSqueezy is not a function (script not loaded before components)
Running the Lemon Squeezy Next.js billing example threw TypeError: window.createLemonSqueezy is not a function. The app called window.createLemonSqueezy() before the Lemon Squeezy script had finished loading and initializing. Because the ca
- stytch-node 6.0 breaks Next.js middleware
After upgrading stytch-node to 6.0, a Next.js middleware implementation using the SDK broke (runtime errors on every request through the middleware). The 6.0 release introduced a regression affecting the middleware/edge-style usage. Downgra
- Notion SDK breaks Next.js 13 Vercel build: `Module not found: Can't resolve 'encoding'`
My Next.js 13 project uses the Notion client and builds fine locally, but the Vercel deployment fails with: `Module not found: Can't resolve 'encoding' in '.../node_modules/node-fetch/lib'`. I am on Notion SDK 2.2.2 with Node 16/18. Did Nex
- @nhost/nextjs 1.13.22: "Can't find variable: React" after upgrade
Upgrading @nhost/nextjs from 1.13.21 to 1.13.22 produced `ReferenceError: Can't find variable: React` in Next.js apps. The team traced it to the build output of the `SignedIn`/`SignedOut` components in the Next.js package, which suddenly em
- convex dashboard crashes npm run dev on headless servers: "spawn xdg-open ENOENT"
On a headless server over SSH, `npm run dev` in the Convex Next.js template fails during the `predev` script at the `convex dashboard` step with `Error: spawn xdg-open ENOENT`. The CLI tries to open the dashboard URL in the default browser,
- customerio-node TypeError: url_1.URL is not a constructor in Next.js
In a Next.js 14 project, calling `getCustomersByEmail(email)` on the `APIClient` from customerio-node throws `Unhandled Runtime Error. TypeError: url_1.URL is not a constructor`. The same call works in a plain Node server. The client was in
- subscribeToContentCardsUpdates not firing in Next.js (Braze web SDK)
On Next.js with Braze Web SDK 4.1.0 installed via npm, `subscribeToContentCardsUpdates((cards) => ...)` never fires after `initialize()` succeeds. The reporter expected existing Content Cards to appear on login and new cards to arrive while
- Cloudinary: uploading file as buffer fails in production (Next.js)
In a Next.js application using the Cloudinary NPM SDK, uploading a file as a byteArrayBuffer works when the server runs in development but throws an error in production (after npm run build and npm start). The failure came from how upload_s
- Module build failed: UnhandledSchemeError: Reading from "node:crypto" is not handled by plugins...
Integrating @axiomhq/nextjs into a Next.js 15 project following the official docs, the Vercel production build fails with: Module build failed: UnhandledSchemeError: Reading from "node:crypto" is not handled by plugins (Unhandled scheme). T
- react-calendly in Next.js: Target container is not a DOM element
Using react-calendly's PopupButton in Next.js throws "Target container is not a DOM element" because the component renders a React portal into rootElement={document.getElementById(...)} during server-side rendering, where document does not
- Clerk not compatible with Next.js 15 (auth() must be async)
Upgrading a Next.js app to Next.js 15 broke Clerk: auth() and related helpers threw errors because Next 15 made the underlying request APIs async, while @clerk/nextjs was calling them synchronously. The stack traces pointed into Clerk's aut
- ENOENT .next/next-server.js.nft.json on Vercel with output standalone on Next.js 16.3
They upgraded to Next.js 16.3 and added output: 'standalone' to next.config.ts. The build compiles and generates static pages fine, then fails at "Running onBuildComplete from Vercel" with Error: ENOENT: no such file or directory, open '/ve
- When to use supabase.auth.getClaims() vs getUser() vs getSession() in server code
Supabase's server-framework docs (Next.js middleware, SvelteKit hooks, etc.) defaulted to supabase.auth.getUser() and getSession(), and it was unclear when to use supabase.auth.getClaims() instead. getUser() adds an extra call to the auth s
- Can't find stylesheet to import after upgrading to Next.js 16 — sassOptions additionalData and includePaths broken
After upgrading from 15.5.3 to 16.0.0, npm run dev fails with a build error on a .module.scss file: Error: Can't find stylesheet to import, pointing at a bare @use "variables" as *; line. Their next.config.ts used sassOptions with includePa
- Cannot find module 'next/dist/compiled/source-map' — 500 on every API route in production
No errors in development, but after deploying to Vercel every API route returns 500 Internal Server Error. Vercel logs show: Cannot find module 'next/dist/compiled/source-map'. Nothing in package.json references source-map directly. Reporte