Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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>
There was a problem hiding this comment.
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-chatbottoapps/consoledevDependencies to resolve missing module build errors. - Add
@object-ui/i18ntoapps/sitetranspilePackagesto avoid Turbopack/SSR CJSrequire()issues viareact-i18nexttransitive 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
| ### 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. | ||
|
|
There was a problem hiding this comment.
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.
Two CI build failures on main after the floating chatbot merge.
Build Core —
@object-ui/consoleConsoleLayout.tsximports from@object-ui/plugin-chatbotbut the package was never added todevDependencies.@object-ui/plugin-chatbot: workspace:*toapps/console/package.jsonBuild Docs —
@object-ui/siteSSR prerenderTooltip page fails with
Error: dynamic usage of require is not supportedduring Next.js SSR. Cause:@object-ui/reactre-exports from@object-ui/i18n→react-i18next→use-sync-external-store/shim(CJSrequire()). The i18n package was missing fromtranspilePackages, so Turbopack hit the CJS path.@object-ui/i18ntotranspilePackagesinapps/site/next.config.mjs