Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issue with action run in CI pipeline
Fix ES module directory import error in @object-ui/core
Feb 3, 2026
Contributor
📦 Bundle Size Report
Size Limits
|
Contributor
|
✅ All checks passed!
|
Collaborator
|
fix ci test and lint |
Collaborator
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Contributor
Author
Fixed both CI test and lint issues:
✅ Lint now passes with 0 errors |
Contributor
📦 Bundle Size Report
Size Limits
|
Contributor
|
✅ All checks passed!
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a CI failure caused by an ES module directory import error in @object-ui/core and addresses an ESLint violation in @object-ui/data-objectstack.
Changes:
- Removed unused
"./types"export from@object-ui/core/package.jsonto fix ES module resolution error - Added braces to
case 'create'block inpackages/data-objectstack/src/index.tsto comply with ESLintno-case-declarationsrule
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/core/package.json | Removed unused "./types" export that was causing ES module directory import errors. Types remain accessible via main export. |
| packages/data-objectstack/src/index.ts | Added braces to case 'create' block to fix ESLint no-case-declarations violation, consistent with other case blocks. |
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.
Fix CI failure: ES module directory import error
The CI is failing with:
Root Cause:
The
@object-ui/corepackage.json has an export for"./types"that points to"./dist/types/index.js", but this export is never used in the codebase. The combination of the type-only re-export insrc/index.tsand the unused package export is causing Node.js ES module resolution issues.Solution:
Removed the unused
"./types"export frompackages/core/package.json. All types remain accessible via the main@object-ui/coreimport.Additional Fix:
Fixed ESLint error in
packages/data-objectstack/src/index.ts- wrappedcase 'create'block in braces to comply withno-case-declarationsrule.Plan:
"./types"export frompackages/core/package.jsonVerification:
✅ Build succeeds without errors
✅ Previously failing tests now pass:
✅ Lint now passes (no errors, only warnings)
✅ Code review completed - no issues
✅ CodeQL security scan - no vulnerabilities
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.