next-blog's People
Forkers
siegfarid ivandi1980 eddiedu candidoacevedodev sandipradana mrfoxc121 swapnilpatil22 laxmanz ebratz lalrempiang bhenrique16 rayvaz haifisch97 nabil-pathan gflacruz harshalatvsh ozkanturidi jackgzhuang mariuspeterg12 5ong surrsoft notharshprajapati ailabteam dev-psr simkidd siddheshzagade kwakseongjae gitlin96 phuocnguyeng marcm8793 nelohenriq surajpratap10 asish-ap rellikjaeger intellidevelopers fotyg luke-barry amllan123 kamaujoan vascoteixeira03 mukebudavid drhcode hritvikgupta jasperayawan itsdagi ngotankhoa21042001 f16t11n tanggalabang mrx126 ayoubben18 devambience veraibitoye imsugat cansurer-at daphne271991 luqmanito abhishek-data 96berry96 rahmatalisk philbertopia fredvuni nghianm2803 mossi4476 ayushvidhale sunny0183 mozi47 hovaness ricardocamisa greg-mukuria ultramind agung343 zhao-diana harismi40 alexanderuk82 anilgardd prashanth1003 jordangallant isharaweerasinghege starklabsindia77 abaso007 davidkingsilite rohithvy aadityapatil350 x-4175726f72612c20496e632e mubshergafar learnobug simon-yoo sarimawan1 kasyfizamzam flypr nicholasllobell mikeebuilds sahad9746 emanuele-senis wileyc427 snakelil yanoe7014 ham12-3 niteshreddy6690 mz0innext-blog's Issues
problem in deploy
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: connect ECONNREFUSED ::1:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 3000
}
}
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
✓ Generating static pages (13/13)
Export encountered errors on following paths:
/page: /
/write/page: /write
getting document is not defined error while yarn build
Error occurred prerendering page "/write". Read more: https://nextjs.org/docs/messages/prerender-error
ReferenceError: document is not defined
Let me know how to resolve this issue
dangerouslySetInnerHTML prop for a React DOM element should be in the form of {__html: ...}
Prisma client error
when im putting the data of post in a prisma studio , it gives me this error , Type: undefined
Message:
Invalid prisma.post.create()
invocation:
{
data: {
slug: "1",
title: "1",
desc: "klad",
img: "/fashion.png",
views: 0,
cat: {
connect: {
? id?: String,
? slug?: String,
? AND?: CategoryWhereInput | CategoryWhereInput[],
? OR?: CategoryWhereInput[],
? NOT?: CategoryWhereInput | CategoryWhereInput[],
? title?: StringFilter | String,
? img?: StringNullableFilter | String | Null,
? Posts?: PostListRelationFilter
}
},
user: {
connect: {}
},
comments: {}
},
select: {
id: true,
createdAt: true,
slug: true,
title: true,
desc: true,
img: true,
views: true,
catSlug: true,
cat: true,
userEmail: true,
user: true,
comments: true
}
}
Argument connect
of type CategoryWhereUniqueInput needs at least one of id
or slug
arguments. Available options are listed in green.
Code: undefined
Query:
[object Object]
however ! i have read and change the code , but still i am getting this error while creating posts in prisma studio ,
[ERR]:CORS error when uploading image to firebase
NOTTHING HERE
Popular category not redirecting to desired path
like clicking on fashion or even anything will redirect to style http://localhost:3000/blog?cat=style
A server-side exception has occurred
Warning: Prop `className` did not match. Server: "null" Client: "light"
Error: data?.map is not a function..
I don't know where the problem is, the local storage is not working and the screen is white ?
Unable to fetch posts on production server, encountering client-side exceptions.
I am facing issues fetching posts on the production server of my Next.js application. The application throws an “Application error: a client-side exception has occurred” message. This issue does not occur in local development (http://localhost:3000).
Steps to Reproduce:
1.Navigate to a post page on the production server, e.g., https://domain-name/posts/[slug].
2.Observe the browser console for errors.
3.Note the network requests and responses, especially for chunk files like page-[slug].js.
Expected Behavior:
Posts should load successfully on the production server, similar to how they load in local development.
Actual Behavior:
Encountering client-side exceptions, specifically 404 Not Found errors for chunk files like page-[slug].js.
Screenshot
![Screenshot 2024-06-28 at 3 20 31 PM](https://private-user-images.githubusercontent.com/24490645/344119967-e62d0e81-47bd-4167-a0ea-7de4d0f888d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2MzQzMjgsIm5iZiI6MTcyMzYzNDAyOCwicGF0aCI6Ii8yNDQ5MDY0NS8zNDQxMTk5NjctZTYyZDBlODEtNDdiZC00MTY3LWEwZWEtN2RlNGQwZjg4OGQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE0VDExMTM0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwZTU5NjA4NGMyOWI1MTRlNGViZDZkY2YzMjY3MDYwMDlkODFlMDg2M2M0MTRjZjEwZjBlYzk5NGVlNjJkY2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Ptbqes0ufc7qwI4UX8K_Lsl_-o9Nv7gwjOFbt1FNVYM)
Environment:
Local Development: Works as expected.
Production Server: Fails to fetch posts, encountering client-side exceptions.
Category pagination Issue
There is a issue in a pagination component with regards to category
Kindly find the below modified code.
Hope you find it useful.
"use client"
import { useRouter } from 'next/navigation';
import styles from './pagination.module.css'
function Pagination({ page, hasPrev, hasNext, cat }) {
const router = useRouter()
return (
{
cat !== undefined ?
<>
<button className={styles.button}
disabled={!hasPrev}
onClick={() => router.push(
?page=${page - 1}&cat=${cat}
)}>
Previous Page
<button
className={styles.button}
disabled={!hasNext}
onClick={() => router.push(
?page=${page + 1}&cat=${cat}
)}>
Next Page
</>
:
<>
<button className={styles.button}
disabled={!hasPrev}
onClick={() => router.push(`?page=${page - 1}`)}
>
Previous Page
</button>
<button
className={styles.button}
disabled={!hasNext}
onClick={() => router.push(`?page=${page + 1}`)}
>
Next Page
</button>
</>
}
</div>
);
}
export default Pagination;
⨯ TypeError: Cannot read properties of undefined (reading 'name')
Getting This error, not exactly sure where is the issue!
at SinglePage (./src/app/posts/[slug]/page.jsx:71:69)
33 | )}
34 |
35 | {data?.user.name}
| ^
36 | 01.01.2024
37 |
38 |
✓ Compiled in 255ms (591 modules)
Facing error while doing npm run build
Error occurred prerendering page "/write". Read more: https://nextjs.org/docs/messages/prerender-error
ReferenceError: document is not defined
Deployment Failure on Vercel for /write Route with React Quill
Description:
I'm encountering a deployment failure on Vercel specifically related to the /write route in my Next.js application. The /write route utilizes the React Quill package and seems to be causing issues during deployment.
Steps to Reproduce:
Attempt deployment on Vercel.
Observe the deployment logs or error messages specifically related to the /write route.
Expected Behavior:
The deployment on Vercel should proceed successfully for all routes, including the /write route using React Quill.
Actual Behavior:
The deployment breaks or encounters errors specifically when handling the /write route, causing the deployment to fail on Vercel.
views is not updating, can anyone help me ?
please anyone
prisma error
Invalid prisma.user.create()
invocation:
Inconsistent column data: Malformed ObjectID: provided hex string representation must be exactly 12 bytes, instead got: "clmegb4vn0001tqbkp5k5t8j2", length 25 for the field 'id'
Cannot read properties of undefined (reading 'page')
src/app/page.jsx (8:36) @ page
6 |
7 | export default function Home({ searchParms }) {
8 | const page = parseInt(searchParms.page) || 1;
| ^
9 |
10 | return (
11 |
[Bug]:in Write.jsx after using dynamic import for Reactquill page is re rendering when we write inside Reactquill
What does this mean?
1.After dynamically importing reactquill in write.jsx src-app-write-write.jsx
2.when using input of reactquill page is re rendering
Error: data?.map is not a function HELP!!
Error: data?.map is not a function
src\components\categoryList\CategoryList.jsx (24:15) @ map
22 |
Popular Categories
23 |
24 | {data?.map((item) => (
| ^
25 | <Link
26 | href="/blog?cat=style"
27 | className={${styles.category} ${styles[item.slug]}
}
Issues with themeprovider
I get this error and I am having trouble with signing in with google
Responsive Login [Authlinks]
Problem with prisma adapter, I suddenly have an 0auth callback error, and I'm in a loop of callbacks.
Hi there! I'm facing some issue with the signin at 2:41:50 mark. As soon as I have inserted a prisma adapter, I suddenly have an 0auth callback error, and I'm in a loop of callbacks.
undefined data?user.name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.