Skip to content

Svelte Version Conflict #126

Open
Open
@lackita

Description

@lackita

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions