palantir/blueprint

Circular Dependencies in Popover

Open

#5,061 opened on 2021年12月7日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
Domain: toolingP2Package: coreType: bughelp wanted

説明

Environment

  • Package version(s): 3.51.3
  • Operating System: macOS 12.0.1 (21A559)
  • Browser name and version: Chrome 96.0.4664.93

Code Sandbox

Link to a minimal repro (fork this code sandbox): I'm not sure how to view the yarn install --verbose output.

Steps to reproduce

  1. Run yarn install --verbose
  2. View output

Actual behavior

(!) Circular dependencies
../../node_modules/@blueprintjs/core/lib/esm/components/popover/popover.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/tooltip/tooltip.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/popover/popover.js
../../node_modules/@blueprintjs/core/lib/esm/components/menu/menu.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/menu/menuItem.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/menu/menu.js
../../node_modules/@blueprintjs/core/lib/esm/components/index.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/hotkeys/index.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/hotkeys/hotkeysTarget.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/hotkeys/hotkeysEvents.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/hotkeys/hotkeysDialog.js -> ../../node_modules/@blueprintjs/core/lib/esm/components/index.js
...and 7 more

Expected behavior

This package shouldn't have circular dependencies.

Possible solution

I'm trying to upgrade my repository to use Yarn 3 and this circular dependency, (which is now a warning) is escalated to an error when in CI environment, thus preventing me from using Yarn3.

コントリビューターガイド