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
Environment:
- Host OS: macOS
- Browser: Not applicable
Description
While running
npm run buildlocally for the Layer5 website, the build fails during static HTML generation for the following page:/programs/lfx/2026This appears to be different from the duplicate route/redirect warnings mentioned in #7606.
Before the failure, Gatsby also reports two missing image prop warnings:
The final build error is:
Steps to reproduce:
Expected Behavior
The production build should complete successfully without failing during static HTML generation.
Screenshots
Environment: