Support array of plugins declared as strings.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript, node.js
- 領域
- tooling
調査の方向性
Start with src/plugins.js, where the error is raised, and trace how src/index.js passes the configuration through. Use the provided test.js reproduction with the shown postcss.config.js; done means string plugin declarations load successfully while the existing plugin-with-options form and plugin order continue to work.
索引モデルが issue の本文から書いたものです。
説明
Details
This postcss config works with webpack but postcss-load-config gives an error:
// postcss.config.js
module.exports = ({file}) => ({
plugins: [
// Warning: order is significant
"postcss-nested",
"postcss-extend-rule",
[
"postcss-simple-vars",
{
test_option: 'some value'
},
],
"postcss-calc",
"postcss-media-minmax",
"autoprefixer",
],
});
Am I doing something fundamentally incorrect or is this not supported?
Error:
Error (Logs|Stacks)
TypeError: Invalid PostCSS Plugin found at: plugins[0]
(@/srv/zulip/postcss.config.js)
at /srv/zulip-npm-cache/f2739c284982d35277414af484c763f882870575/node_modules/postcss-load-config/src/plugins.js:77:15
at Array.forEach (<anonymous>)
at plugins (/srv/zulip-npm-cache/f2739c284982d35277414af484c763f882870575/node_modules/postcss-load-config/src/plugins.js:58:13)
at processResult (/srv/zulip-npm-cache/f2739c284982d35277414af484c763f882870575/node_modules/postcss-load-config/src/index.js:37:14)
at /srv/zulip-npm-cache/f2739c284982d35277414af484c763f882870575/node_modules/postcss-load-config/src/index.js:172:10
at Function.sync (/srv/zulip-npm-cache/f2739c284982d35277414af484c763f882870575/node_modules/postcss-load-config/src/index.js:99:12)
at assert_conversion (/srv/frontend_tests/node_tests/postcss.js:17:42)
... <further traceback is our calling code>
Reproduction (Code)
// test.js
const postcss = require("postcss");
const postcssrc = require('postcss-load-config');
const ctx = { parser: true, map: false, file: "/path/index.css"};
const {plugins, options} = postcssrc.sync(ctx);
Run node test.js.
Environment
| OS | node | npm/yarn | package |
|---|---|---|---|
| Ubuntu 20.04 | v14.17.3 | 6.14.13 | 1.22.10 |
- 主要言語
- 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 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
postcss/postcss-load-config#212 · コメント 7 件 ·
-
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 日以内に返信