Skip to content

fix(ci): add missing plugin-chatbot dep to console, add i18n to site transpilePackages#1157

Merged
hotlong merged 2 commits intomainfrom
copilot/fix-ci-build-and-test-errors-yet-again
Mar 31, 2026
Merged

fix(ci): add missing plugin-chatbot dep to console, add i18n to site transpilePackages#1157
hotlong merged 2 commits intomainfrom
copilot/fix-ci-build-and-test-errors-yet-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Two CI build failures on main after the floating chatbot merge.

Build Core — @object-ui/console

ConsoleLayout.tsx imports from @object-ui/plugin-chatbot but the package was never added to devDependencies.

  • Added @object-ui/plugin-chatbot: workspace:* to apps/console/package.json

Build Docs — @object-ui/site SSR prerender

Tooltip page fails with Error: dynamic usage of require is not supported during Next.js SSR. Cause: @object-ui/react re-exports from @object-ui/i18nreact-i18nextuse-sync-external-store/shim (CJS require()). The i18n package was missing from transpilePackages, so Turbopack hit the CJS path.

  • Added @object-ui/i18n to transpilePackages in apps/site/next.config.mjs

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectui-demo Ready Ready Preview, Comment Mar 31, 2026 9:03am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
objectui Ignored Ignored Mar 31, 2026 9:03am

Request Review

…ranspilePackages

Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/3f47dbd4-e83a-4da9-a0c0-72a79a9f03d4

Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix all CI build and test errors fix(ci): add missing plugin-chatbot dep to console, add i18n to site transpilePackages Mar 31, 2026
Copilot AI requested a review from xuyushun441-sys March 31, 2026 09:06
@hotlong hotlong marked this pull request as ready for review March 31, 2026 09:23
Copilot AI review requested due to automatic review settings March 31, 2026 09:23
@hotlong hotlong merged commit 71af2fa into main Mar 31, 2026
4 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes two CI build failures introduced after the floating chatbot merge by ensuring the console app declares the chatbot plugin dependency and the docs site transpiles the i18n package during Next.js SSR.

Changes:

  • Add @object-ui/plugin-chatbot to apps/console devDependencies to resolve missing module build errors.
  • Add @object-ui/i18n to apps/site transpilePackages to avoid Turbopack/SSR CJS require() issues via react-i18next transitive imports.
  • Update lockfile and changelog to reflect the dependency/config changes.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
apps/console/package.json Declares @object-ui/plugin-chatbot so console builds can resolve the import.
apps/site/next.config.mjs Adds @object-ui/i18n to transpilePackages to fix SSR prerender failures.
pnpm-lock.yaml Lockfile updates reflecting the added workspace dependency and re-resolution.
CHANGELOG.md Documents both CI fixes under Unreleased.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread CHANGELOG.md
Comment on lines +10 to +14
### Fixed

- **Console build** (`@object-ui/console`): Added missing `@object-ui/plugin-chatbot` devDependency that caused `TS2307: Cannot find module '@object-ui/plugin-chatbot'` during build.
- **Site SSR build** (`@object-ui/site`): Added `@object-ui/i18n` to `transpilePackages` in `next.config.mjs` to fix "dynamic usage of require is not supported" error when prerendering the tooltip docs page. The i18n package is a transitive dependency of `@object-ui/react` and its `react-i18next` dependency requires transpilation for Turbopack SSR compatibility.

Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Within [Unreleased] this introduces a new ### Fixed heading, but there is already another ### Fixed heading later in the same [Unreleased] block. To keep the changelog structure easy to scan (and closer to Keep a Changelog), consider consolidating to a single ### Fixed section and moving these two bullets into it.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants