Conflicting peer dependency when installing on SvelteKit

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

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

評価

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

調査の方向性

Start by reproducing the conflict with npm i -D postcss-mixins in a SvelteKit project using svelte-preprocess. Review the package dependency declarations and the reported sugarss peer-version requirements. Done means the plugin installs without requiring --force or --legacy-peer-deps, with the dependency resolution verified against the versions in the report.

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

説明

Describe the bug
I guess this issue might well be within the territory of Svelte and their preprocess module, but I wonder if there is any workaround here or if anyone at postcss might be able to resolve the conflict.

I am unable to add the postcss-mixins plugins to my SvelteKit project.

Logs
code ERESOLVE
ERESOLVE could not resolve
While resolving: [email protected]
Found: [email protected]
node_modules/sugarss
sugarss@"^4.0.1" from [email protected]
node_modules/postcss-mixins
dev postcss-mixins@"*" from the root project
Could not resolve dependency:
peerOptional sugarss@"^2.0.0" from [email protected]
node_modules/svelte-preprocess
svelte-preprocess@"^4.0.0" from [email protected]
node_modules/svelte-check
dev svelte-check@"^2.7.1" from the root project
dev svelte-preprocess@"^4.10.7" from the root project
Conflicting peer dependency: [email protected]
node_modules/sugarss
peerOptional sugarss@"^2.0.0" from [email protected]
node_modules/svelte-preprocess
svelte-preprocess@"^4.0.0" from [email protected]
node_modules/svelte-check
dev svelte-check@"^2.7.1" from the root project
dev svelte-preprocess@"^4.10.7" from the root project
Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

To Reproduce

npm i -D postcss-mixins
in any Svelte project with svelte-preprocess

Expected behavior
The plugin should install without any problem.

Information about project
OS: Windows 10
Using SvelteKit
svelte-preprocess version 4.10.6

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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

postcss/postcss-mixins のほかの issue

postcss/postcss-mixins の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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