fix(ui): expose v2 component css via package exports#30294
Closed
jerome-benoit wants to merge 1 commit into
Closed
fix(ui): expose v2 component css via package exports#30294jerome-benoit wants to merge 1 commit into
jerome-benoit wants to merge 1 commit into
Conversation
The "./v2/*" entry hardcodes a .tsx target, so CSS imports like @opencode-ai/ui/v2/text-input-v2.css resolved to non-existent .css.tsx files and broke vite build.
jerome-benoit
added a commit
to jerome-benoit/dotfiles
that referenced
this pull request
Jun 1, 2026
Carry anomalyco/opencode#30294 (state: open) which fixes vite build break: 'packages/ui/package.json' './v2/*' export hardcodes a .tsx target, so CSS imports like @opencode-ai/ui/v2/text-input-v2.css resolved to non-existent .css.tsx files. PR base SHA matches our locked rev (a821029258fd) — patch applies with zero offset/fuzz via pkgs.applyPatches verified. Drop the patch when the PR merges into anomalyco/opencode upstream and the lock advances past the merge commit.
Contributor
Author
|
Closing — fix is already in |
jerome-benoit
added a commit
to jerome-benoit/dotfiles
that referenced
this pull request
Jun 2, 2026
Lock advanced past the change introduced by anomalyco/opencode#30294; the './v2/*.css' export is now present in upstream packages/ui/package.json at locked rev a78adb1b. PR was closed (not merged) and issue #30292 marked completed.
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.
Issue for this PR
Closes #30292
Type of change
What does this PR do?
Adds
./v2/*.cssto the@opencode-ai/uiexports map.The existing
./v2/*entry hardcodes a.tsxtarget, so CSS imports like@opencode-ai/ui/v2/text-input-v2.css(added in #29689 bypackages/app/src/components/settings-v2/settings-v2.css) resolved to non-existent.css.tsxfiles andvite buildfailed in@tailwindcss/vite:generate:build.Node's exports-map specificity rule picks the longer key (
./v2/*.css) for.cssrequests automatically; the existing./v2/*continues to handle.tsxrequests unchanged.How did you verify your code works?
devtip: sameCan't resolve '@opencode-ai/ui/v2/text-input-v2.css'error asbuild-clirun 26783826518 anddeployrun 26783826509.This is the same build path used by the Nix package and CI (
packages/opencode/script/build.ts:31shells out tobun run --cwd packages/app build).Screenshots / recordings
N/A.
Checklist