[GH-ISSUE #825] Warning when bundling with rollup: "Circular dependencies" #3256

Closed
opened 2026-04-25 17:35:47 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @arklanq on GitHub (Apr 14, 2022).
Original GitHub issue: https://github.com/semver/semver/issues/825

When I try to bundle my library (with semver as a dependency) with rollup I get the following warning:

(!) Circular dependencies
../node_modules/semver/classes/comparator.js -> ../node_modules/semver/classes/range.js -> ../node_modules/semver/classes/comparator.js
../node_modules/semver/classes/comparator.js -> ../node_modules/semver/classes/range.js -> /Users/arek/Documents/CodeCloud/Node/next-recompose-plugins/node_modules/semver/classes/comparator.js?commonjs-proxy -> ../node_modules/semver/classes/comparator.js

The library on which I am working is public, so feel free to play with rollup yourself (located under /lib directory in monorepo):
https://github.com/IdkMan2/next-recompose-plugins

Originally created by @arklanq on GitHub (Apr 14, 2022). Original GitHub issue: https://github.com/semver/semver/issues/825 When I try to bundle my library (with semver as a dependency) with rollup I get the following warning: ``` (!) Circular dependencies ../node_modules/semver/classes/comparator.js -> ../node_modules/semver/classes/range.js -> ../node_modules/semver/classes/comparator.js ../node_modules/semver/classes/comparator.js -> ../node_modules/semver/classes/range.js -> /Users/arek/Documents/CodeCloud/Node/next-recompose-plugins/node_modules/semver/classes/comparator.js?commonjs-proxy -> ../node_modules/semver/classes/comparator.js ``` The library on which I am working is public, so feel free to play with rollup yourself (located under /lib directory in monorepo): https://github.com/IdkMan2/next-recompose-plugins
Author
Owner

@ljharb commented on GitHub (Apr 14, 2022):

That package is https://github.com/npm/node-semver - not this repo.

<!-- gh-comment-id:1099589128 --> @ljharb commented on GitHub (Apr 14, 2022): That package is https://github.com/npm/node-semver - not this repo.
Author
Owner

@arklanq commented on GitHub (Apr 15, 2022):

Mistake, sory mate.

<!-- gh-comment-id:1100078986 --> @arklanq commented on GitHub (Apr 15, 2022): Mistake, sory mate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#3256