postcss-mixins icon indicating copy to clipboard operation
postcss-mixins copied to clipboard

Conflicting peer dependency when installing on SvelteKit

Open mir0ir opened this issue 3 years ago • 1 comments

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

mir0ir avatar Oct 10 '22 13:10 mir0ir

  1. You need ask svelte-preprocess to update sugarss dependency.
  2. I will try to move SugarSS to optional dependency.

ai avatar Oct 10 '22 13:10 ai