Skip to content

Fix LFX 2026 build failure#7784

Open
KatalKavya96 wants to merge 1 commit into
layer5io:masterfrom
KatalKavya96:fix/lfx-2026-build-failure
Open

Fix LFX 2026 build failure#7784
KatalKavya96 wants to merge 1 commit into
layer5io:masterfrom
KatalKavya96:fix/lfx-2026-build-failure

Conversation

@KatalKavya96
Copy link
Copy Markdown
Member

Description

This PR fixes #7783

This PR fixes the production build failure on /programs/lfx/2026.

The build was failing during Gatsby static HTML generation with the following error:

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

The issue was caused by ArrowUpwardIcon being imported from @sistent/sistent, but that icon export appears to be unavailable/undefined. As a result, Gatsby attempted to render an undefined component during the production build.

This PR removes the invalid icon import and replaces it with a simple arrow inside the existing back-to-top button, keeping the same functionality while avoiding the undefined component error.

Notes for Reviewers

Tested with:

npm run build

The production build now completes successfully:

success Building static HTML for pages - 1330/1330
info Done building

There are still existing [gatsby-plugin-image] Missing image prop warnings during the build, but they do not block the build and appear unrelated to this specific failure.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Kavya Katal <kavyakatal09@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

🚀 Preview deployment: https://layer5.io/pr-preview/pr-7784/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant