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

Circular Dependency : Statistic and StatisticGroup #4474

Open
djsethi09 opened this issue Mar 19, 2024 · 5 comments
Open

Circular Dependency : Statistic and StatisticGroup #4474

djsethi09 opened this issue Mar 19, 2024 · 5 comments

Comments

@djsethi09
Copy link

Bug Report

When importing Statistic and StatisticGroup together in one import: the webpack throws error due to circular dependency.

Steps

Just try following import
import { Statistic, StatisticGroup } from 'semantic-ui-react';

Expected Result

Should be importable

Actual Result

Reference Error

Version

2.1.5
Screenshot 2024-03-19 at 3 38 27 AM

Copy link

welcome bot commented Mar 19, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@djsethi09
Copy link
Author

As a work around: I separated the imports in 2 lines and it works

@shaynethiessen
Copy link

shaynethiessen commented Jul 1, 2024

As a work around: I separated the imports in 2 lines and it works

Thanks for the tip. That workaround also works for #4481

@adam-bentley
Copy link

As a work around: I separated the imports in 2 lines and it works

Thanks for the tip. That workaround also works for #4481

Hi,

Can you please explain how you got this working for #4481
Do you have an code example?

Thanks,
Adam

@djsethi09
Copy link
Author

djsethi09 commented Aug 5, 2024

@adam-bentley
import { Container, Segment, Grid, Header, Icon, Label, Statistic } from 'semantic-ui-react'; import { StatisticGroup } from 'semantic-ui-react'; //Import statistic and group separately due to circular dependency in the library

example above.

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

No branches or pull requests

3 participants