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

未关闭
#136 10 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript, webpack
领域
frontend, tooling

调研方向

首先,跟踪 webpack-dev-server main.js 输出中针对 react-router-dom 的 DuplicatesPlugin 报告,并比较 resolved、installed 和 depended 的含义。检查列出的重复文件表示的是重复的包副本,还是已打包模块的重复,然后记录这一解释,并通过类似报告进行验证。

由索引模型根据 Issue 内容生成。

描述

unverified

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
        [email protected] -> 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!)

主要语言
TypeScript
星标
590
派生
20
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FormidableLabs/inspectpack 的其他 Issue

查看 FormidableLabs/inspectpack 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。