All Questions
Tagged with next.js13 javascript
571
questions
0
votes
0
answers
15
views
Is this is right way to implement Thirdweb authentication with saving user in our backend database if user not present
// UserLoginProvider.js
export const UserLoginProvider = ({ children }) => {
const [walletAddress, setWalletAddress] = useState("");
const [loggedIn, setLoggedIn] = useState(false);
...
0
votes
0
answers
27
views
Next js build time too long
I bought a template built on Nextjs 13 and I found that the build time is too long
The server take too much time to build components or pages
even I am not doing any request or fetching from an api
...
0
votes
0
answers
27
views
Uploaded Images can't delete in cloudinary for nextjs
I implemented the code for uploading and deleting images in cloudinary for nextjs, image uploads worked very well but image deletion is not working. i created api/upload/route.js from from the app and ...
0
votes
0
answers
20
views
using cookies from next/headers marks all pages as dynamic
When I am using cookies from "next/headers" it marks all pages as dynamic, this is not what I want my structure is like this in layout.tsx I have a child server component in which I want to ...
0
votes
0
answers
26
views
Nextjs Script Doesn't Work With Conditionals
// _document.js, doesn't work
const isProduction = process.env.NODE_ENV === "production";
const nonce = "1234-abcd-wxyz";
// ...
<Html lang="en">
<Head nonce={...
0
votes
1
answer
29
views
Next JS Links sending users to wrong page on Firebase Hosting
Background: I am using NextJS hosted on Firebase hosting. My pages all have a Navbar component with an "Account" button. The button is a NextJS Link with href="/account".
When ...
0
votes
0
answers
17
views
Issue with libsql client in Next.js with correct environment variables
I'm currently facing an issue with integrating the libsql client into my Next.js application. Here's a simplified snippet of how I'm attempting to create the libsql client:
console.log(process.env....
0
votes
0
answers
56
views
How to Use TipTap <EditorProvider /> with <EditorContent />?
Background
I'm using React, Next.js, and TipTap as part of a project. I have been using TipTap with useEditor initially, but to allow more flexibility and prevent the need to pass the editor to every ...
0
votes
0
answers
31
views
FB Pixel: Problem with IP address in production mode
I'm currently setting up the FB Pixel for the first time (next.js). In development mode everything is working as expected and correctly.
My problem is production mode: I found out that the user ip ...
0
votes
1
answer
30
views
TypeError: (0 , _utils___WEBPACK_IMPORTED_MODULE_2__.default) is not a function
I'm having issues with Shadcn library, after fixing all the style problems I encounter issues with the import of cn.
Next.js point me cn isn't a function. I tried to do
import { cn } from '/utils/' ...
0
votes
0
answers
15
views
Download pdf is not working here i want to download selected pdf using js pdf ,next js and Tremor charts
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-...
0
votes
0
answers
79
views
Nextjs 14 generateStaticParams doesn't generate files
I'm on NextJS 14 with the App router, and I'm using output: "export" to generate static files for production. I'm using the generateStaticParams function inside /[id]/page.tsx to export ...
0
votes
0
answers
28
views
Node error while running npx create next app
I am trying to create a next project using npx but i am getting an error
npm error code ENOENT
npm error syscall lstat
npm error path C:\Users\LENOVO\AppData\Roaming\npm
npm error errno -4058
npm ...
0
votes
0
answers
34
views
How to revalidate current path in Next.js14?
I am rewriting code of a goal tracker app and moving from onSubmit to Server Actions
So basically user can add goals and groups of goals (Relationship, Financial, etc)
It's a simple one page app
...
0
votes
1
answer
46
views
How to combine the data of two state into third state in Next js
I am using useState to set a state I have collected data in two different states (that are text and inputs ) now I want to add both states into a third state (that is alldata)
I have tried
const [...