Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

BUG: `multi DOCUMENT_PATH` not inferred correctly.

オープン
#89 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nextjs, typescript, webpack
領域
tooling

調査の方向性

まず、バンドルパーサーが multi NAME エントリをどのように処理するかを調べ、next/dist/pages/_document.js に対して表示される次のモジュールソースと比較します。異なるソース名をどのように保持すべきかを判断し、次にこのバンドル形式を対象とするリグレッションテストを追加して、レポートが両方のソースを同じファイルとして扱わなくなったことを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug

If we produce up with a bundle like:

/***/ 61:
/*!*******************************************************************************!*\
  !*** multi /PATH/TO/my-app/node_modules/next/dist/pages/_document.js ***!
  \*******************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! /PATH/TO/my-app/node_modules/next/dist/pages/_document.js */62);


/***/ }),

/***/ 62:
/*!*************************************************************************!*\
  !*** /PATH/TO/my-app/node_modules/next/dist/pages/_document.js ***!
  \*************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! next/document */ 63)

We get the plugin report of:

## static/HASH/pages/_document.js
next (Found 1 resolved, 1 installed. Latest version 7.0.0.)
  7.0.0
    ~/next
      * Dependency graph
        [email protected] -> next@^7.0.0
      * Duplicated files in static/HASH/pages/_document.js
        next/dist/pages/_document.js (S, 42)

The issue: This is because the different sources:

  • multi /PATH/TO/my-app/node_modules/next/dist/pages/_document.js
  • /PATH/TO/my-app/node_modules/next/dist/pages/_document.js

both resolve to a short name of next/dist/pages/_document.js

Task

  • Dig into what multi NAME really means.
  • See if there are other things like multi that may occur?
  • Deal with the naming issue. (Maybe preserve multi?)
  • Add regression tests.
主要言語
TypeScript
スター
590
フォーク
20
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FormidableLabs/inspectpack のほかの issue

FormidableLabs/inspectpack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。