arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io

Log where module failures occur

オープン
#200 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
1.6k
フォーク
65
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently, when `attw` fails, the error message may look something like,

> A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/CJSResolvesToESM.md.

The immediate question that comes to mind is: *where is the import causing the failure*? It would save considerable time and add clarity to the error message if the location of the incorrect module import was logged.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず報告された attw の失敗を再現し、現在のモジュール解決エラーがどのように組み立てられているかを追跡します。誤ったモジュールインポートをどこで確認できるかを特定します。既存の診断を維持したまま、エラーメッセージにそのインポートの場所が記録されれば完了です。

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

評価

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

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

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