Skip to content

[WIP] Fix module not found error in Turbopack build#228

Merged
xuyushun441-sys merged 2 commits intomainfrom
copilot/fix-module-resolution-error
Jan 27, 2026
Merged

[WIP] Fix module not found error in Turbopack build#228
xuyushun441-sys merged 2 commits intomainfrom
copilot/fix-module-resolution-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

Fix Missing Dependency in @object-ui/fields Package

The build is failing because @object-ui/fields imports from @object-ui/core but doesn't declare it as a dependency.

Plan

  • Analyze the issue - fields package imports ComponentRegistry from core but missing dependency
  • Add @object-ui/core to dependencies in packages/fields/package.json
  • Install dependencies to ensure proper resolution
  • Rebuild the fields package to verify the fix
  • Test the site build to confirm resolution
  • Code review completed - no issues found
  • Security scan completed - no vulnerabilities detected

Summary

Successfully fixed the module resolution error by adding the missing @object-ui/core dependency to the @object-ui/fields package. The original build error "Can't resolve '@object-ui/core'" has been completely resolved.

Original prompt

15:48:46.053
15:48:46.053

@objectui/site@0.0.0 build /vercel/path0/apps/site
15:48:46.053
next build
15:48:46.053
15:48:47.078
[MDX] generated files in 16.646888999999987ms
15:48:47.084
▲ Next.js 16.1.4 (Turbopack)
15:48:47.085
15:48:47.118
Creating an optimized production build ...
15:49:12.240
15:49:12.240
Build error occurred
15:49:12.243
Error: Turbopack build failed with 1 errors:
15:49:12.243
./packages/fields/dist/index.js:4:1
15:49:12.243
Module not found: Can't resolve '@object-ui/core'
15:49:12.244
2 | import { Textarea as q, Input as _, Checkbox as Ce, Label as re, Switch as Se, Select as Te, SelectTrigger as Fe, SelectValue as Ae, SelectContent as Oe, SelectItem as Pe, Badge as w, Dialog as $e, DialogTrigger as De, Button as W, DialogContent as Ue, DialogHeader as Ie, DialogTitle as Me, Avatar as Y, AvatarFallback as z } from "@object-ui/components";
15:49:12.244
3 | import { X as he, Search as Le, Check as Ye } from "lucide-react";
15:49:12.244
4 | import { ComponentRegistry as x } from "@object-ui/core";
15:49:12.244
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:49:12.244
5 | var A = { exports: {} }, C = {};
15:49:12.244
6 | var te;
15:49:12.244
7 | function ze() {
15:49:12.244
15:49:12.244
15:49:12.244
15:49:12.244
Import trace:
15:49:12.244
Client Component Browser:


💬 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 Jan 27, 2026

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

Project Deployment Review Updated (UTC)
objectui-site Ready Ready Preview, Comment Jan 27, 2026 7:57am

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
@xuyushun441-sys xuyushun441-sys marked this pull request as ready for review January 27, 2026 07:58
@xuyushun441-sys xuyushun441-sys merged commit 0ac6bef into main Jan 27, 2026
2 checks passed
Copilot AI requested a review from hotlong January 27, 2026 07:59
Copilot stopped work on behalf of hotlong due to an error January 27, 2026 07:59
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.

3 participants