How to use async function?
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- tooling
調査の方向性
Start by reproducing the async processPostCSS example and capture the error from postcssrc(ctx), since no file or test is identified in the issue. Done means determining why the async API fails and documenting or fixing the behavior so the example returns css successfully.
索引モデルが issue の本文から書いたものです。
説明
I've never been able to successfully use the async API in my application and I'm wondering why? Do you have any thoughts?
I'm using:
async function processPostCSS(src = '') {
const ctx = { parser: true, map: 'inline' };
const { plugins } = await postcssrc(ctx)
const { css } = await postcss([postcssNested(), autoprefixer(), ...plugins]).process(src, { from: undefined })
return css
}
postcssrc(ctx) causes this function to break for some reason that I don't understand. If I change to the synchronous API it works fine. I'm not sure how to tell what the error is, all I know is that it doesn't return the css when I use the postcss-load-config async API
What am I doing incorrectly?
- 主要言語
- JavaScript
- スター
- 661
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
postcss/postcss-load-config のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
postcss/postcss-load-config#266 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
postcss/postcss-load-config#248 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
postcss/postcss-load-config#225 · コメント 13 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
postcss/postcss-load-config#221 · コメント 4 件 ·
-
priority: medium semver: minor type: feature
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
postcss/postcss-load-config#183 · コメント 1 件 · リアクション 4 件 ·
postcss/postcss-load-config の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
Forrest-Technologies/drover#1040 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
erkamyaman/rust-anything#702 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
erkamyaman/unslop-anything#231 ·
メンテナーはふだん 1 日以内に返信