Conflicting peer dependency when installing on SvelteKit
还没有人认领这个 Issue。
评估
- 难度
- 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
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
postcss/postcss-mixins 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 42/100
postcss/postcss-mixins#133 · 6 条评论 · 1 个 reaction ·
-
Option to ignore unresolvable mixins可能已有人在做 @buschtoens 于 2531 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
postcss/postcss-mixins#104 · 1 条评论 ·
查看 postcss/postcss-mixins 的全部 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 天内回复