arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io

Log where module failures occur

未关闭
#200 2 条评论 0 个 reaction 已指派 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 摘要。