layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

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

Open KatalKavya96 opened this issue 5 months ago • 1 comments

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

KatalKavya96 avatar Jun 04 '26 16:06 KatalKavya96

This issue is invalid

KatalKavya96 avatar Jun 10 '26 17:06 KatalKavya96