evanw / evanw/node-source-map-support

lib throws error with "Cannot read property 'isNative' of undefined"

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

説明

For seemingly unknown causes, when running transpiled code (either through ts-node, or running the plain javascript after transpiling it with tsc) the code throws the error "Cannot read property 'isNative' of undefined."

The piece of code that looks to be the problem is inside source-map-support, as follows:

```javascript
if (frame.isNative()) // Here sometimes "frame" is undefined
```

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

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

調査の方向性

`if (frame.isNative())` を含む source-map-support のコードから始め、ts-node または tsc の出力を通してトランスパイルされたコードを実行するときに `frame` がどのように取得されるかを調査します。報告されたエラーを再現し、関連するスタックトレースのケースを特定します。完了とは、エラーが発生しなくなり、その動作が適切なテストでカバーされていることを意味します。

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

評価

技術スタック
javascript
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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