Questions tagged [next]

Do NOT use this tag for Next.js, use [next.js] instead. For questions related to Iterator, use [iterator]. For questions related to JQuery selectors, use [jquery-selectors]. For questions related to pagination, use [pagination]

92 questions
0
votes
2 answers

IIS Add Application Under Website With Different Port

I have website created under IIS 10 named MyWeb that runs under port 5000. I need to create an application under it, to host a .NET 6 and I need this app to listen to port 6000, can this be done? My goal is to host a NextJS app and a .NET 6 app…
Hasan Shouman
  • 2,162
  • 1
  • 20
  • 26
0
votes
0 answers

npm start does not work after npx create-next-app

I was trying to start with next.js and started a new project. I am facing issue with npm start after doing npx create-next-app. It gives the following error on npm start > coursepage@0.1.0 start > next start sh: next: command not found I have…
0
votes
0 answers

is there any option for use i18n in Next js without sub path or domain routing?

I have tried manyways like we used in React JS i18n and LanguageDetector but its throwing errr in Next JS like below # Error: Text content does not match server-rendered HTML. Warning: Text content did not match. Server: "login" Client:…
0
votes
1 answer

Add new properties to a mongoose model in a Next JS 13 application

I am building a next js app with mongodb. I have a small problem though. I want to add new properties to one of my models. For one reason or another my models remain the same even though i modify the Schema. Why is that? I made a mongoose…
0
votes
0 answers

Params are undefined in use client component in next 13

I have a Next.js project with a dynamic route for the donate page. In a separate HTML file, I passed the URL to an iframe and attempted to pass query parameters from there. However, I am facing an issue as I am unable to receive the query…
sohaib
  • 574
  • 5
  • 16
0
votes
1 answer

Next Project Environmental Variable

I am working on a Next project now (only UI design )and I was provided with a .env.local file which contains the envt variables to access authorized pages. But even after adding it to the root directory of the project, I am still directed to the…
0
votes
1 answer

MongoDB, find booking obj by user

I have 2 models in Next.js app, Booking and User. Obj bellow is booking obj. When User booked some dates, new obj in booking is created. When user open booking details page, should see details of booking. I have a problem to select a specific object…
Peret
  • 79
  • 8
0
votes
0 answers

How to add timezone with next auth max age?

I live in India and here the timezone is IST . Sounds like the default time zone NextJS uses is UTC 0 because I defined the maxAge for the session as 1 hour but actually, the session expires 3 hours later. How could I fix it ? session: { maxAge: 60…
Vishal
  • 178
  • 5
0
votes
0 answers

Passing the URL to server component / page.tsx (React, Next.js 13)

I am creating a landing page that fetches data from two servers subsequently and loads an embedded application using this fetched data. The challenge The webpage will be deployed with AWS Amplify and to make this work I cannot use things like…
wood
  • 1
  • 1
0
votes
0 answers

My service worker using workbox is not fullfilling in a next-pwa because it's not on the global scope due to workbox build

I'm going to try to be as thorough as I can: We are working on a PWA with nextJS using this package: https://github.com/shadowwalker/next-pwa As of now, I'm working on the service worker for sending push notifications and the package uses…
0
votes
1 answer

How can I use Ant Design with Next.js server-side rendering?

I've been trying to figure out how I can use Ant Design (antd) in my next.js application. And it seems like I just can't do that. More precisely, I can, but then I just have to render everything on the client side, because almost every Ant Design…
Oleg Ivsv
  • 119
  • 7
0
votes
0 answers

Why is my useState null in my monorepo setup with vite, react, astro and nextJS?

I created a monorepo with two npm workspaces and the delivered code seems to be correct but still fails. The setup is like - package - JSX components to export - vite config - package.json - react - package.json - ... - next (with…
Bach
  • 1
  • 2
0
votes
1 answer

vercel error no such file or directory, open '/var/task/node_modules/shiki/themes/one-dark-pro.json'

import { serialize } from 'next-mdx-remote/serialize'; import readingTime from 'reading-time'; import remarkGfm from 'remark-gfm'; import rehypeSlug from 'rehype-slug'; import rehypeAutolinkHeadings from 'rehype-autolink-headings'; import…
Pratham
  • 53
  • 3
0
votes
0 answers

Invalid login: 501 Could not decode user and password for AUTH PLAIN (Zoho email provider)

Locally it works perfectly but when I deploy stuff to Vercel it gives me the following error Invalid login: 501 Could not decode user and password for AUTH PLAIN Is there anything I am missing? import nodemailer from "nodemailer"; import type {…
Front-end Developer
  • 400
  • 1
  • 6
  • 17
0
votes
0 answers

useSelector not working with getServerSideProps

I am using a simple next app, where i am fetching data from an api using getServerSideProps and after fetching the data is dispatched to reducer from a page. I am using a component , where useSelector is used. but the useSelector return only initial…
codinmach
  • 47
  • 7