Skip to content

fix(next-drupal): undefined is not serializable#828

Closed
rainer-friederich wants to merge 4 commits intochapter-three:mainfrom
rainer-friederich:seralize_793
Closed

fix(next-drupal): undefined is not serializable#828
rainer-friederich wants to merge 4 commits intochapter-three:mainfrom
rainer-friederich:seralize_793

Conversation

@rainer-friederich
Copy link
Copy Markdown

This pull request is for: (mark with an "x")

  • examples/*
  • modules/next
  • packages/next-drupal
  • starters/basic-starter
  • starters/graphql-starter
  • starters/pages-starter
  • Other

GitHub Issue: #793

  • I need help adding tests. (mark with an "x")
    Code changes need test coverage. If you don't know
    how to make tests, check this box to ask for help.

Describe your changes

When serializing the menu props in getStaticProps in Next.js 15 pages router it fails because undefined is not serializable. This changes undefined to null so it can be serialized.

The same issue should happen with app router and the export target

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 20, 2025

@yobottehg is attempting to deploy a commit to the Chapter Three Team on Vercel.

A member of the Team first needs to authorize it.

@rainer-friederich rainer-friederich closed this by deleting the head repository Mar 4, 2026
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.

1 participant