[Rollup] Cannot read properties of undefined (reading 'url') -- with multiple @use
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rollup, sass, typescript
- 領域
- build-system, tooling
調査の方向性
sass-embedded を使用する rollup-plugin-scss で、2 つの @use 文を含む SCSS エントリを使って報告された Rollup 設定を再現し、その後、sass を使用した同じ設定と比較します。発生する undefined url エラーを追跡し、それが sass-embedded に属するのか Rollup plugin に属するのかを特定します。原因が特定され、複数の @use のケースが失敗しなくなるか、サポート対象外として明確に文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
This may be an issue specific to the Rollup plugin, but if sass-embedded is meant to be a drop-in replacement for sass, then it may be an issue worth describing here.
I am using:
"rollup": "^4.39.0",
"rollup-plugin-scss": "^4.0.1",
"sass-embedded": "^1.86.3"
Like this:
import scss from "rollup-plugin-scss";
import * as sassEmbedded from "sass-embedded";
...
scss({
fileName: "output.css",
sass: sassEmbedded
}),
And a stripped down test case file that looks like:
@use 'module1';
@use 'module2';
Which results in Cannot read properties of undefined (reading 'url') but only if there is more than one @use statement.
If I swap out sass-embedded for sass, it works without the error, which leads me to think the error lies in this package.
import scss from "rollup-plugin-scss";
import sass from "sass";
...
scss({
fileName: "output.css",
sass: sass
}),
- 主要言語
- TypeScript
- スター
- 229
- フォーク
- 33
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sass/embedded-host-node のほかの issue
-
needs info
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
sass/embedded-host-node#387 · コメント 20 件 ·
-
bug needs info
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
sass/embedded-host-node#296 · コメント 3 件 ·
sass/embedded-host-node の issue をすべて見る
似ている issue
-
[Text] Add Reading Time & Word Count Estimator for Reflection Notes in src/lib/text/reading-time.tsオープンarea:core beginner-friendly community contributions-welcome difficulty:easy enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timingオープンe2e-failure ready-to-code
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
devswha/herdr-web-ui#2884 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
b:minor bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
software-mansion/argent#1771 ·
メンテナーはふだん 1 日以内に返信