You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Circular Dependency between comparator.js and range.js #318
Oh, actually, that's not possible, because anyone doing require('semver/classes/comparator') will get a broken class.
I think this is a legitimate case of two classes that have to reference one another, and the refactor will be rather strained. Is there a way to just tell rollup to be ok with it?
I'm also having this issue when using rollup to build my package which uses some other packages with a dependency to semver. The semver version used is 7.6.2 (currently the latest). Is there a workaround for this bug?
Activity
isaacs commentedon Apr 19, 2020
We could maybe do this by putting the
intersectsmethod in a different file.isaacs commentedon Apr 19, 2020
Oh, actually, that's not possible, because anyone doing
require('semver/classes/comparator')will get a broken class.I think this is a legitimate case of two classes that have to reference one another, and the refactor will be rather strained. Is there a way to just tell rollup to be ok with it?
gp3gp3gp3 commentedon May 2, 2021
This throws warnings in react native projects with the metro bundler which can't be silenced unless you silence all warnings unfortunately
maietta commentedon Feb 12, 2023
Yeah, I'm still having this problem in 2023...
ilbrando commentedon Jun 5, 2024
I'm also having this issue when using rollup to build my package which uses some other packages with a dependency to semver. The semver version used is 7.6.2 (currently the latest). Is there a workaround for this bug?
WarningImHack3r commentedon Nov 21, 2025
Still a thing today, with the latest 7.7.3