postcss / postcss-mixins

PostCSS plugin for mixins
MIT License
466 stars 47 forks source link

Conflicting peer dependency when installing on SvelteKit #149

Open mir0ir opened 1 year ago

mir0ir commented 1 year ago

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: svelte-preprocess@4.10.7 Found: sugarss@4.0.1 node_modules/sugarss sugarss@"^4.0.1" from postcss-mixins@9.0.4 node_modules/postcss-mixins dev postcss-mixins@"*" from the root project Could not resolve dependency: peerOptional sugarss@"^2.0.0" from svelte-preprocess@4.10.7 node_modules/svelte-preprocess svelte-preprocess@"^4.0.0" from svelte-check@2.9.1 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: sugarss@2.0.0 node_modules/sugarss peerOptional sugarss@"^2.0.0" from svelte-preprocess@4.10.7 node_modules/svelte-preprocess svelte-preprocess@"^4.0.0" from svelte-check@2.9.1 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

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