All Questions
8,183
questions
0
votes
0
answers
12
views
NextJS 14 not consistently loading scripts
On NextJS 14.1.3 I am seeing some strange behavior I do not understand. When I am visiting a page that loads JS from a file the application does not pull the JS every time. Like maybe doesn't load ...
0
votes
0
answers
27
views
Change site name [duplicate]
I can’t change the site name, I tried adding a tag
<meta property="og:site_name" content="sitename">
tried schema.org
<head>
<script type="...
0
votes
0
answers
43
views
Why Sentry throws "Invalid token" (http status: 401) error for a valid token?
I've got a next.js application that connected to sentry and I'm confident about the token, But when I tried to run npm run build in my app to get output I faced Invalid token (http status: 401) error.
...
0
votes
0
answers
16
views
Unable to Sign In with Keycloak using NextAuth in Next.js Application [next-auth][error][SIGNIN_OAUTH_ERROR]
I'm trying to set up authentication for my Next.js application using NextAuth and Keycloak. Despite following the documentation, I'm encountering an issue when attempting to sign in with Keycloak.
My ...
0
votes
0
answers
6
views
Calculating the area of packaging dieline from DXF file using JavaScript
Here my dxd file dieline image dxd file dieline image
I want to calculate the area of dieline in dxd file
Heres my dxd file:
https://drive.google.com/file/d/1crCl0uiSOHN4idBfQVTUIu6BJ0ZdhS5-/view?usp=...
-1
votes
0
answers
18
views
What's the difference between component as prop or rendered component as prop (see examples below)
Let's say I have a conponent name Child:
const Child =(props) => <div {...props}/>
and a parent component Parent, getting this component as prop named ComponentProp. What is the difference ...
-2
votes
0
answers
18
views
I want to divide childrens by their props. but the result value of console.log is different by using "use client" [closed]
I want to divide childrens by their props.
for example, if children has classname "ABC", It is not displayed.
Not using "use client",
enter image description here
type is "div&...
-4
votes
0
answers
20
views
Invariant failed: A state mutation was detected between dispatches [closed]
This is the body of the code
const tableHeader = [
{ title: "Product name", widthClass: "w-[25%]" },
{ title: "Product category", widthClass: "w-[19%...
0
votes
0
answers
14
views
How can i highlight area in docx using react-doc-viewer
I have list of area to highlight with
{
width,
height,
left,
top
}
const RenderDocxHighlights = () => {
return (
<div>
{(highlightAreas as HighlightAreaExtented[]).map((...
0
votes
0
answers
11
views
How to Protect Videos in a Hosting Environment for an LMS Platform Using Next.js and Node.js? [closed]
I'm working on an LMS (Learning Management System) platform using Next.js for the front-end and Node.js for the back-end. One of the key features of the platform is hosting and streaming educational ...
1
vote
0
answers
18
views
Tailwind CSS Grid doesn't seem to be working properly while using Nextjs. Somtimes works with 4 cols, sometimes doesn't
I was working on this project where i had to use grid on a small component.
Main div :-
import Feature from "@/components/Feature";
export default function WebsiteFeatures () {
return (
...
0
votes
0
answers
24
views
Switch the Database of the default mongoose connection
In trying to limit the number of connections in my web application I switched from using mongoose.createConnection() to mongoose.connect()
Which works perfectly if your only ever using one database. ...
0
votes
1
answer
24
views
Reusing react component across the three and deduplicate request - NextJS or React
I'm using NextJS 14 and I'm making a chat application.
Each time a message is sent or received, next to the chat message there is a small icon with the image representing the user that sent the image.
...
0
votes
1
answer
45
views
Props does not match the required types of a Next.js Page
Here is the page.tsx of my next.js website. It should take in two props. Visual studio code is not giving me any errors but when the website builds I get the following error message:
Failed to compile....
0
votes
1
answer
41
views
+200
how to add text annotations to text notes in a react nextjs 14 (app router) app
I am trying to build an app that allows users to comment on legal judgments. i have judgments and notes in my app. notes are made on the text of judgments. At the moment, when a user selects an area ...