Skip to content

Error when creating new blog post #1129

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

Merged
merged 1 commit into from
Mar 31, 2025
Merged

Error when creating new blog post #1129

merged 1 commit into from
Mar 31, 2025

Conversation

t14
Copy link
Contributor

@t14 t14 commented Mar 2, 2025

When creating a new blog post the following TypeError occurs

Unhandled Runtime Error

[ Server ] Error: Cannot read properties of undefined (reading 'includes')

eval
./app/blog/%5B...slug%5D/page.tsx
Module.generateMetadata
./app/blog/%5B...slug%5D/page.tsx

Checking that img is defined before calling the the includes method resolves the issue

When creating a new blog post the following error occurs
[ Server ] Error: Cannot read properties of undefined (reading 'includes')
Copy link

vercel bot commented Mar 2, 2025

@t14 is attempting to deploy a commit to the timlrx's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Mar 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwind-nextjs-starter-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 31, 2025 7:20am

@timlrx
Copy link
Owner

timlrx commented Mar 31, 2025

Thanks for the fix

@timlrx timlrx merged commit fe3aac3 into timlrx:main Mar 31, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants