Skip to content

Build fails for /programs/lfx/2026 during static HTML generation #7783

@KatalKavya96

Description

@KatalKavya96

Description

While running npm run build locally for the Layer5 website, the build fails during static HTML generation for the following page:

/programs/lfx/2026

This appears to be different from the duplicate route/redirect warnings mentioned in #7606.

Before the failure, Gatsby also reports two missing image prop warnings:

warn [gatsby-plugin-image] Missing image prop
warn [gatsby-plugin-image] Missing image prop

The final build error is:

ERROR #95313 HTML.COMPILATION

Building static HTML failed for path "/programs/lfx/2026"

WebpackError: Element type is invalid: expected a string (for built-in components)
or a class/function (for composite components) but got: undefined.

Steps to reproduce:

npm install --legacy-peer-deps
npm run build

Expected Behavior

The production build should complete successfully without failing during static HTML generation.

Screenshots

Image

Environment:

  • Host OS: macOS
  • Browser: Not applicable

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions