Warning when registering plugin using baseDir if broccoli-rollup is installed

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
build-system

調査の方向性

broccoli-rollup がインストールされている状態で preprocess-rollup アドオンの setupPreprocessorRegistry の例を使って警告を再現してから、ember serve を実行します。前処理中に baseDir の登録がどのように処理されるかを追跡し、baseDir や broccoli-rollup を削除せずに警告が消えることを確認します。

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

説明

When attempting to add a plugin

setupPreprocessorRegistry(type, registry) {
    registry.add('htmlbars-ast-plugin', {
      baseDir() {
        return __dirname;
      },
    });
  },

if broccoli-rollup is installed then when running ember serve I get the message:
Warning: failed to stat /preprocess-rollup/node_modules/broccoli-rollup/tmp/rollup-input_base_path-6obEeBLr.tmp/0

If I remove broccoli-rollup or remove the baseDir

setupPreprocessorRegistry(type, registry) {
    registry.add('htmlbars-ast-plugin', {});
},

Then no warning is printed.

This is reproducible in a brand new addon like https://github.com/jrjohnson/preprocess-rollup (addon doesn't do anything and the plugin itself won't work since it doesn't exist, bu the message is obvious.

I'm running into this while working on https://github.com/FortAwesome/ember-fontawesome/pull/21

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

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

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

はじめの一歩

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

ember-cli/ember-cli-htmlbars のほかの issue

ember-cli/ember-cli-htmlbars の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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