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

docs: fix storybook input error #1594

Closed
wants to merge 1 commit into from
Closed

Conversation

Topener
Copy link
Contributor

@Topener Topener commented Sep 11, 2024

Fixes an error introduced with #1590 causing an error in storybook prod. Implements libs-674

Specifically tagging @KaiVandivier to check this as the circular dependency issue sounds like it needed solving too

@Topener Topener requested a review from a team as a code owner September 11, 2024 09:15
@dhis2-bot
Copy link
Contributor

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

@dhis2-bot dhis2-bot temporarily deployed to netlify September 11, 2024 09:19 Inactive
@Mohammer5
Copy link
Contributor

This seems wrong to me. The component is within the @dhis2-ui/input library, so importing a component from itself via it's module name shouldn't be happening.

If there is a circular dependency, meaning that src/input imports from src/input-field, that what should be fixed instead as that shouldn't be happening

@amcgee
Copy link
Member

amcgee commented Sep 23, 2024

It was a bit convoluted but I found the underlying issue and fixed it in #1602 - agree it's better not to import internal dependencies through the external package export

@Topener Topener closed this Sep 23, 2024
@Topener Topener deleted the libs-674-storybook-error branch September 23, 2024 14:14
@Topener
Copy link
Contributor Author

Topener commented Sep 23, 2024

Closing this in favour of the better fix

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.

4 participants