Skip to content

fix: remove ConsolePlugin import from CRM config to fix Vite browser build#508

Merged
hotlong merged 2 commits intomainfrom
copilot/fix-ci-errors-build-test-again
Feb 14, 2026
Merged

fix: remove ConsolePlugin import from CRM config to fix Vite browser build#508
hotlong merged 2 commits intomainfrom
copilot/fix-ci-errors-build-test-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 14, 2026

examples/crm/objectstack.config.ts imported ConsolePlugin (a Node.js server-side module using url, path, fs), which got pulled into the Vite browser build via:

browser code → objectstack.shared.ts → @object-ui/example-crm/objectstack.config → ../../apps/console/plugin.ts

Failing with: "fileURLToPath" is not exported by "__vite-browser-external".

Change

  • Removed ConsolePlugin import and instantiation from examples/crm/objectstack.config.ts
  • The CRM example's server-side entrypoints (server.ts, console-plugin.ts) already import it independently where it's actually needed
Original prompt

fix ci errors build and test


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 14, 2026

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

Project Deployment Actions Updated (UTC)
objectui Error Error Feb 14, 2026 0:33am
objectui-demo Error Error Feb 14, 2026 0:33am
objectui-storybook Error Error Feb 14, 2026 0:33am

Request Review

…build

The CRM example config imported ConsolePlugin (Node.js server-side code using
url, path, fs builtins) which got pulled into the Vite browser build via:
  objectstack.shared.ts → @object-ui/example-crm/objectstack.config → plugin.ts

This caused the build to fail with:
  "fileURLToPath" is not exported by "__vite-browser-external"

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI errors in build and test process fix: remove ConsolePlugin import from CRM config to fix Vite browser build Feb 14, 2026
Copilot AI requested a review from hotlong February 14, 2026 12:35
@hotlong hotlong marked this pull request as ready for review February 14, 2026 12:37
Copilot AI review requested due to automatic review settings February 14, 2026 12:37
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

This PR fixes a critical Vite browser build failure caused by importing ConsolePlugin (a Node.js server-side module) in examples/crm/objectstack.config.ts. The CRM config is imported into the browser build chain via objectstack.shared.ts → browser components (App.tsx, mocks/browser.ts), causing Node.js built-in modules (url, path, fs) to be pulled into the browser bundle, resulting in "fileURLToPath" is not exported by "__vite-browser-external" errors.

Changes:

  • Removed ConsolePlugin import from examples/crm/objectstack.config.ts
  • Changed plugins array from [new ConsolePlugin()] to []
  • The CRM example's server-side entry points (server.ts, console-plugin.ts) already import and use ConsolePlugin independently

@hotlong hotlong merged commit afe0216 into main Feb 14, 2026
15 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants