FormidableLabs / FormidableLabs/inspectpack

What does a report mean that says "1 resolved, 1 installed"?

Open
#136 10 comments 0 reactions 0 assignees View on GitHub
unverified
Dominant language
TypeScript
Stars
590
Forks
20
PR merge metrics
No merged PRs in 30d

Description

I'm seeing the following (verbose) report for one of my projects, and I'm not sure how to interpret it:

```
react-router-dom (Found 1 resolved, 1 installed, 1 depended. Latest 5.1.2.)
5.1.2
path/to/my-project/~/react-router-dom
* Dependency graph
my-project@1.0.0 -> react-router-dom@^5.0.1
* Duplicated files in main.js
react-router-dom/esm/react-router-dom.js (S, 9997)
```

My best guess would be that it means I don't actually have any duplicated packages (hence 1,1,1), but that somehow I'm consuming the same package twice in different ways. Is that possible? Could I somehow be consuming it once as CJS and once as ESM, and that's what Inspectpack is picking up on?

I'm using the `DuplicatesPlugin` in my dev Webpack configuration, so `main.js` is the output from webpack-dev-server. I see similar reports for other libraries, not just `react-router-dom`.

Many thanks (and thanks for putting this tool together!)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.