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

Unable to install Svelte-Legos, Prettier Dependency #94

Open
Chaddeus opened this issue Jul 19, 2023 · 2 comments
Open

Unable to install Svelte-Legos, Prettier Dependency #94

Chaddeus opened this issue Jul 19, 2023 · 2 comments

Comments

@Chaddeus
Copy link

Since I'm using Prettier 3.0+ it appears I cannot install Svelte Legos, as it seems to have a dependency on an older Prettier version.

npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/prettier
npm ERR!   dev prettier@"^3.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer prettier@"^1.16.4 || ^2.0.0" from [email protected]
npm ERR! node_modules/prettier-plugin-svelte
npm ERR!   dev prettier-plugin-svelte@"^2.10.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/prettier
npm ERR!   peer prettier@"^1.16.4 || ^2.0.0" from [email protected]
npm ERR!   node_modules/prettier-plugin-svelte
npm ERR!     dev prettier-plugin-svelte@"^2.10.1" from the root project
@ankurrsinghal
Copy link
Owner

Hey thanks for reporting this, will try to fix this.

@LeoCaprile
Copy link
Contributor

mmm looks like a common problem with peer dependencies, try npm install --legacy-peer-deps

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

3 participants