-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug report for project page and project/[slug] page #4
Comments
I came across vercel/next.js#44998 and using next.js 3.1.1 on my side indeed removes the second issue (using yarn dev). However, yours is using 3.2.4. The first issue remains on 3.1.1 still though. Using 3.1.1 also lacks Metadata type, so I still hope we can fix this on 3.2.4 |
running 'next dev' (I use yarn dev basically) looks like give totally different output, it will remove below
error - Error: Cannot find module 'next/dist/server/app-render/get-segment-param.js'
|
it seems export async function generateStaticParams(): Promise<Props["params"][]> {
return allProjects
.filter((p) => p.published)
.map((p) => ({
slug: p.slug,
}));
} is kind of confusing, what's the purpose here to get a static slug? I do see
could get the slug as well Shall we delete generateStaticParams() here? I commented it out, and seems Not sure what's going on here. |
Co-authored-by: Xuan <[email protected]>
|
but then how to deal with the errors? worth mentioning next 3.1.1 has no issue. So I'm not sure how this should be handled. |
Hmm I didn't notice the errors tbh, I'll check it out this week |
Actually; i believe these are connected? #14 |
Yay. I found the answer after 2 days of no sleep, delete dir generate " |
I believe they are related to the rendering of MDX files: #42 is the answer! |
Co-authored-by: Xuan <[email protected]>
Co-authored-by: Xuan <[email protected]>
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:
I tried to use
or
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.
The text was updated successfully, but these errors were encountered: