Broken with babel-register source mapping

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

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

評価

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

調査の方向性

示されている babelrc を使い、Node v5.12 で babel-register のセットアップを再現し、通常の実行と --no-source-maps を比較します。babel-register/lib/node.js、babel-core/lib/api/node.js、convert-source-map/index.js から始めます。フラグなしで source maps が機能し、node_modules/convert-source-map/foo.js.map が見つからないというエラーが出力されなければ完了です。

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

説明

I'm trying to run something like so:

require('babel-register')
// Do stuff

It only works with --no-source-maps. I'm getting this error:

/home/dev/W/app/index.js
/home/dev/W/app/node_modules/babel-register/lib/node.js
/home/dev/W/app/node_modules/babel-core/index.js
/home/dev/W/app/node_modules/babel-core/lib/api/node.js
/home/dev/W/app/node_modules/babel-core/lib/transformation/file/index.js
/home/dev/W/app/node_modules/convert-source-map/index.js
An error occurred while trying to read the map file at node_modules/convert-source-map/foo.js.map
Error: ENOENT: no such file or directory, open 'node_modules/convert-source-map/foo.js.map'

Using this babelrc:

{
    "presets": ["es2015-node5"],
    "plugins": [
        "transform-object-rest-spread",
        "transform-class-properties",
        "add-module-exports",
        [
            "transform-async-to-module-method",
            { "module": "bluebird", "method": "coroutine" }
        ]
    ]
}

Using node v5.12

├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected] 
└── [email protected] 

Any ideas?

主要言語
JavaScript
スター
3.7k
フォーク
145
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

Experience-Monks/devtool のほかの issue

Experience-Monks/devtool の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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