Error transpiling some Ember functions
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- babel, javascript
- 領域
- build-system
調査の方向性
ember-cli-babel v2.16.2 と v2.18.0 を使って例で問題を再現し、その後、アロー関数と通常の関数における、インポートされた @ember/debug 関数の Babel 変換を調査します。生成されたコードが a、b、c、d、e のインポートされた warn 参照を ReferenceError なしで保持していれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi, I'm trying to use the new import syntax (@ember/package) but I think I found an issue when using some Ember functions (like Ember.warn).
For example, this piece of code...
import { warn } from '@ember/debug';
const a = () => warn('a');
const b = () => { warn('b') };
const c = () => { return warn('c') };
const d = function(){ warn('d') };
const e = function(){ return warn('e') };
Produces this after building the application:
var a = function a() {
return warn('a');
};
var b = function b() {
(true && Ember.warn('b'));
};
var c = function c() {
return warn('c');
};
var d = function d() {
(true && Ember.warn('d'));
};
var e = function e() {
return warn('e');
};
In the example, the functions b and d are correct but the a, c and e are not ok because it will throw a ReferenceError.
For some reason, only the functions that returns something have the wrong code.
Don't know if this is the correct repo to publish this issue but I think it could be related with babel transformations.
I've tested it in my companies application, and an empty projects using v2.16.2 and v2.18.0.
- 主要言語
- JavaScript
- スター
- 152
- フォーク
- 115
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
emberjs/ember-cli-babel のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
emberjs/ember-cli-babel#508 ·
-
Add support for Babel v8対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
emberjs/ember-cli-babel#535 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
emberjs/ember-cli-babel#533 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
emberjs/ember-cli-babel#519 · コメント 6 件 · リアクション 8 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
emberjs/ember-cli-babel#517 ·
emberjs/ember-cli-babel の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
documentation good first issue help wanted
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
zmo2s/agent-toolbox#23 ·
-
[Bug]: [MCP/CLI] Bare loopback IP addresses (127.0.0.1:port) and hosts with ports fail to navigate due to erroneous scheme inference対応中かも @alok-108 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/playwright#43263 ·
メンテナーはふだん 1 日以内に返信
-
bug traffic
難易度 2/5 1時間未満 初心者へのやさしさ 74/100