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 Version Conflict #126

Open
lackita opened this issue Jan 4, 2025 · 2 comments
Open

Svelte Version Conflict #126

lackita opened this issue Jan 4, 2025 · 2 comments

Comments

@lackita
Copy link

lackita commented Jan 4, 2025

Ran into an issue following the Svelte documentation. It wants me to run this command:

npm install --save-dev svelte svelte-preprocess @tsconfig/svelte esbuild-svelte

When I do so from a fresh project based on this template, though, I get the following error:

'Log files:
/home/lackita/.npm/_logs/2025-01-04T20_01_44_949Z-debug-0.log

# npm resolution error report

While resolving: [email protected]
Found: [email protected]
node_modules/typescript
  peer typescript@">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" from [email protected]
  node_modules/tsutils
    tsutils@"^3.21.0" from @typescript-eslint/[email protected]
    node_modules/@typescript-eslint/eslint-plugin
      dev @typescript-eslint/eslint-plugin@"5.29.0" from the root project
    tsutils@"^3.21.0" from @typescript-eslint/[email protected]
    node_modules/@typescript-eslint/type-utils
      @typescript-eslint/type-utils@"5.29.0" from @typescript-eslint/[email protected]
      node_modules/@typescript-eslint/eslint-plugin
        dev @typescript-eslint/eslint-plugin@"5.29.0" from the root project
    tsutils@"^3.21.0" from @typescript-eslint/[email protected]
    node_modules/@typescript-eslint/typescript-estree
      @typescript-eslint/typescript-estree@"5.29.0" from @typescript-eslint/[email protected]
      node_modules/@typescript-eslint/parser
        peer @typescript-eslint/parser@"^5.0.0" from @typescript-eslint/[email protected]
        node_modules/@typescript-eslint/eslint-plugin
          dev @typescript-eslint/eslint-plugin@"5.29.0" from the root project
        dev @typescript-eslint/parser@"5.29.0" from the root project
      @typescript-eslint/typescript-estree@"5.29.0" from @typescript-eslint/[email protected]
      node_modules/@typescript-eslint/utils
        @typescript-eslint/utils@"5.29.0" from @typescript-eslint/[email protected]
        node_modules/@typescript-eslint/eslint-plugin
          dev @typescript-eslint/eslint-plugin@"5.29.0" from the root project
        @typescript-eslint/utils@"5.29.0" from @typescript-eslint/[email protected]
        node_modules/@typescript-eslint/type-utils
          @typescript-eslint/type-utils@"5.29.0" from @typescript-eslint/[email protected]
          node_modules/@typescript-eslint/eslint-plugin
            dev @typescript-eslint/eslint-plugin@"5.29.0" from the root project
  dev typescript@"4.7.4" from the root project

Could not resolve dependency:
peerOptional typescript@"^5.0.0" from [email protected]
node_modules/svelte-preprocess
  dev svelte-preprocess@"*" from the root project

Conflicting peer dependency: [email protected]
node_modules/typescript
  peerOptional typescript@"^5.0.0" from [email protected]
  node_modules/svelte-preprocess
    dev svelte-preprocess@"*" 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.
@lackita
Copy link
Author

lackita commented Jan 4, 2025

I updated the version to 5.7.2 in my project and that seems to be working. I'll mention any issues I run into here as I work on the plugin.

@lackita
Copy link
Author

lackita commented Jan 4, 2025

Introduced a pull request to update that version, not sure if I need to do anything to link it to this issue.

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

1 participant