Relative Content

Tag Archive for nextjs14

Typescript error showing in npm run build

I am in junior in next js . Currently , my problem is that when i am running npm run build , it is showing typescript error even though i am not using in my project . I n my project I am implementation for internationalization and it works well . But when i mentioned in above , npm run build command is showing ts error . Please kindly help me .

Next-auth signIn return {error:’Configuration’} in responce for invalid credentials. Next JS 14.2.3, Next-auth 5.0.0 Beta

I just started to learn Next JS. I started with Next Js version 14.2.3 and I want to create a login form. I am using next-auth 5.0.0 beta for authentication. I am able to login in with correct credentials. But i want to return a message for user when the credentials are not matching.
I am getting the object {error: ‘configuration’, status: 200, Ok…} and I have this line in the server console:
[auth][error] CallbackRouteError: Read more at https://errors.authjs.dev#callbackrouteerror
[auth][cause]: Error: Missing credentials.
at Object.authorize (webpack-internal:///(rsc)/./src/util/AuthOptions.ts:44:27)
….
Here is my codes:

Nextjs 14 store server side token

using the nextJs 14 application. seeks to obtain the server-level token in order to use another system’s API. Where can we keep data that is accessible to all users on the server side?

nextjs14 I fetch data in the server component. When building I get Minified React error #31. There are no errors in dev mode

import { getSlides } from “./api/getSlides”; import Slider from “./ui/Slider”; const HeroSlider = async () => { const slides = await getSlides(); console.log(slides); return ( <> { slides && <Slider data={slides} /> } </> ); }; export default HeroSlider; import Image from “next/image”; import BestOffersSlider from “@/shared/bestOffersSlider/BestOffersSlider”; import PopularProductsSlider from “@/shared/popularProductsSlider/PopularProductsSlider”; import Footer from “../footer/Footer”; […]