Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting peer dependency when installing on SvelteKit #149

Open
mir0ir opened this issue Oct 10, 2022 · 1 comment
Open

Conflicting peer dependency when installing on SvelteKit #149

mir0ir opened this issue Oct 10, 2022 · 1 comment

Comments

@mir0ir
Copy link

mir0ir commented Oct 10, 2022

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

@ai
Copy link
Member

ai commented Oct 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants