Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: circular dependency in input-field #1590

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

KaiVandivier
Copy link
Contributor

@KaiVandivier KaiVandivier commented Sep 2, 2024

Building with Vite/Rollup reveals a warning about a circular dependency:

Export "InputField" of module "node_modules/@dhis2-ui/input/build/es/input-field/input-field.js" was reexported through module "node_modules/@dhis2-ui/input/build/es/index.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.

In my tests in apps, other components like MenuItem and SingleSelectField also created warnings, but those ones have already been fixed in recent UI versions 👏 🥳 using the latest version in a test app fixes the warnings other than InputField

@KaiVandivier KaiVandivier requested a review from a team as a code owner September 2, 2024 16:11
@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-1590--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify September 2, 2024 16:20 Inactive
@KaiVandivier KaiVandivier requested a review from amcgee September 2, 2024 16:38
@KaiVandivier KaiVandivier merged commit bcd0f41 into master Sep 9, 2024
18 checks passed
@KaiVandivier KaiVandivier deleted the fix-circular-import-inputfield branch September 9, 2024 12:03
dhis2-bot added a commit that referenced this pull request Sep 10, 2024
## [9.11.4](v9.11.3...v9.11.4) (2024-09-10)

### Bug Fixes

* circular dependency in input-field ([#1590](#1590)) ([bcd0f41](bcd0f41))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 9.11.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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