-
Notifications
You must be signed in to change notification settings - Fork 450
Open
Description
Hi there,
First of all, Love your design.
I'm new to web development and react, now I'm trying to develop a personal site using your template from vercel.
I found two issues:
- when trying to open projects/page or http://localhost:3000/projects, it will likely to give error, especially when you try to refresh:
Unhandled Runtime Error
Error: Hydration failed because the initial UI does not match what was rendered on the server.
Warning: Expected server HTML to contain a matching <article> in <a>.
See more info here: https://nextjs.org/docs/messages/react-hydration-error
Component Stack
article
a
LinkComponent
./node_modules/next/dist/client/link.js (100:23)
div
Card
./app/components/card.tsx (26:11)
- for projects/[slug] page, like /projects/planetfall, when click on the card, it also throws error (and sometimes can load the page),
error - Page changed from static to dynamic at runtime /projects/planetfall, reason: no-store fetch https://evolving-cougar-30891.upstash.io /projects/[slug]
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error
at globalThis.fetch (/Users/xuanliu/react/bio/MySite/node_modules/src/server/app-render.tsx:408:23)
at HttpClient.request (webpack-internal:///(sc_server)/./node_modules/@upstash/redis/esm/pkg/http.js:94:29)
at GetCommand.exec (webpack-internal:///(sc_server)/./node_modules/@upstash/redis/esm/pkg/commands/command.js:55:37)
at PostPage (webpack-internal:///(sc_server)/./app/projects/[slug]/page.tsx:39:19) {
page: '/projects/[slug]'
I tried to use
export const dynamic = "force-dynamic"
or
export const dynamic = 'force-dynamic'
export const dynamicParams = true
export const revalidate = false
export const fetchCache = 'auto'
export const runtime = 'nodejs'
export const preferredRegion = 'auto'
from https://beta.nextjs.org/docs/api-reference/segment-config
seems also not working.
I'm trying to understand what's wrong and this, but seems I need your help or, you could kindly look into it.
I basically changed nothing from your code, just yarn install and yarn dev, it will throw above error.
I also tried to downgrade to next.js 3.1.6, seems the same issue.
Metadata
Metadata
Assignees
Labels
No labels