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

Svelte: Generating a library breaks dependency install #914

Open
RobertoGoAm opened this issue Mar 11, 2023 · 2 comments
Open

Svelte: Generating a library breaks dependency install #914

RobertoGoAm opened this issue Mar 11, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@RobertoGoAm
Copy link

RobertoGoAm commented Mar 11, 2023

Describe the bug
After generating a library with nx g @nxext/svelte:library components, can't install any further packages or do rm -rf node_modules && npm i without finding the following:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @nxext/[email protected]
npm WARN Found: @nrwl/[email protected]
npm WARN node_modules/@nxext/svelte/node_modules/@nrwl/linter
npm WARN   @nrwl/linter@"15.7.0" from @nrwl/[email protected]
npm WARN   node_modules/@nxext/svelte/node_modules/@nrwl/cypress
npm WARN     @nrwl/cypress@"15.7.0" from @nxext/[email protected]
npm WARN     node_modules/@nxext/svelte
npm WARN   1 more (@nrwl/workspace)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer @nrwl/linter@"^15.7.0" from @nxext/[email protected]
npm WARN node_modules/@nxext/svelte
npm WARN   dev @nxext/svelte@"^15.7.0" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @nxext/[email protected]
npm WARN Found: @nrwl/[email protected]
npm WARN node_modules/@nxext/svelte/node_modules/@nrwl/workspace
npm WARN   @nrwl/workspace@"15.7.0" from @nrwl/[email protected]
npm WARN   node_modules/@nxext/svelte/node_modules/@nrwl/cypress
npm WARN     @nrwl/cypress@"15.7.0" from @nxext/[email protected]
npm WARN     node_modules/@nxext/svelte
npm WARN   1 more (@nxext/vite)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer @nrwl/workspace@"^15.7.0" from @nxext/[email protected]
npm WARN node_modules/@nxext/svelte
npm WARN   dev @nxext/svelte@"^15.7.0" from the root project
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @nxext/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/svelte-preprocess
npm ERR!   dev svelte-preprocess@"^5.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer svelte-preprocess@"^4.4.2" from @nxext/[email protected]
npm ERR! node_modules/@nxext/svelte
npm ERR!   dev @nxext/svelte@"^15.7.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/svelte-preprocess
npm ERR!   peer svelte-preprocess@"^4.4.2" from @nxext/[email protected]
npm ERR!   node_modules/@nxext/svelte
npm ERR!     dev @nxext/svelte@"^15.7.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /Users/roberto/.npm/_logs/2023-03-11T13_30_44_623Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/roberto/.npm/_logs/2023-03-11T13_30_44_623Z-debug-0.log

To Reproduce
Steps to reproduce the behavior:

  • Clone: https://github.com/RobertoGoAm/ui-library
  • Install dependencies with: npm i
  • Do the following from the root of the project:
    • npm install @nxext/svelte --save-dev
    • nx g @nxext/svelte:library components
    • rm -rf node_modules && npm i
  • The error mentioned earlier should show up

Expected behavior
No error should show and package should continue to work and install without issues

Additional context
Tried with latest Node and LTS using nvm, nx is version 15.7.2, made sure to reinstall everything previous to this and tried to install other packages without any issues

@RobertoGoAm RobertoGoAm added the bug Something isn't working label Mar 11, 2023
@DominikPieper
Copy link
Member

@RobertoGoAm could you retry with the latest version please?

@brandon-flores
Copy link

brandon-flores commented Jul 25, 2023

@DominikPieper it was not published #924

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants