fix(ui): make Feast UI Vite-compatible by removing browser-only process/env and EUI dynamic icon breakage - #6724
Open
kchawlani19 wants to merge 1 commit into
Open
Conversation
…ependency and arrow_down icon import path
kchawlani19
force-pushed
the
fix/ui-vite-arrowdown-5429
branch
from
August 10, 2026 12:39
e5ceb05 to
0b5b96b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Importing
@feast-dev/feast-uiin a Vite app fails at runtime, blocking the documented module-integration path.Observed failures included:
ReferenceError: process is not definedFailed to fetch dynamically imported module: .../assets/arrow_down?importRoot cause
Two Vite-incompatible runtime paths were involved:
process.envreads in browser-executed UI code (FeastUIandCurlGeneratorTab).arrow_downdynamic module loading in this packaging context.Fix
getProcessEnv) and replaced directprocess.envaccess in:ui/src/FeastUI.tsxui/src/pages/feature-views/CurlGeneratorTab.tsxEuiSelectinProjectSelectorwith a native<select>to avoid the dynamic icon import path that causesarrow_downresolution failures.Layoutwith a local inline SVG glyph.ui/src/utils/environment.test.tsui/src/components/ProjectSelector.test.tsxTest plan
cd ui && npx jest src/utils/environment.test.ts src/components/ProjectSelector.test.tsx src/FeastUISansProviders.test.tsx --runInBandcd ui && npm run build:libRisk / rollback
Risk is low-to-medium and limited to UI behavior:
EuiSelect-> native<select>.Rollback is straightforward by reverting this PR commit.