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

fix: upgrade svelte-check preventing unmet peer deps errors #13103

Conversation

valentinpalkovic
Copy link
Contributor

@valentinpalkovic valentinpalkovic commented May 5, 2023

Description

The svelte-ts template installs Typescript in v5.x, although svelte-preprocess, which is defined as v4.x and is a dependency of svelte-check, does not mention Typescript 5 as a valid peer dependency. Bumping svelte-check to v3 resolves the issue, because then svelte-preprocess v5 is used under the hood, which defines Typescript 5 as a valid peer dependency. Package managers, which throw an error for unmet peer dependencies, will not fail anymore.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the PR Title Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@stackblitz
Copy link

stackblitz bot commented May 5, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@valentinpalkovic valentinpalkovic force-pushed the valentin/upgrade-svelte-check-in-svelte-ts-sandbox branch 2 times, most recently from 69f2be3 to f66c7ad Compare May 5, 2023 13:04
@valentinpalkovic valentinpalkovic force-pushed the valentin/upgrade-svelte-check-in-svelte-ts-sandbox branch from f66c7ad to 105e0b7 Compare May 5, 2023 13:17
The svelte-ts template installs Typescript in v5.x, although svelte-preprocess, which is defined as v4.x and is a dependency of svelte-check, does not mention Typescript 5 as a valid peer dependency. Bumping svelte-check to v3 resolves the issue, because then svelte-preprocess v5 is used under the hood, which defines Typescript 5 as a valid peer dependency. Package managers, which throw an error for unmet peer dependencies, will not fail anymore.
@valentinpalkovic valentinpalkovic force-pushed the valentin/upgrade-svelte-check-in-svelte-ts-sandbox branch from 105e0b7 to fbd7d51 Compare May 5, 2023 13:18
@valentinpalkovic valentinpalkovic changed the title Upgrade svelte-check to v3.x in svelte-ts template fix: Upgrade svelte-check in svelte-ts template preventing unmet peer dep errors May 5, 2023
@valentinpalkovic valentinpalkovic changed the title fix: Upgrade svelte-check in svelte-ts template preventing unmet peer dep errors fix: Upgrade svelte-check preventing unmet peer deps errors May 5, 2023
@valentinpalkovic valentinpalkovic changed the title fix: Upgrade svelte-check preventing unmet peer deps errors fix: upgrade svelte-check preventing unmet peer deps errors May 5, 2023
@patak-dev patak-dev merged commit c63ba3f into vitejs:main May 5, 2023
13 of 17 checks passed
@valentinpalkovic valentinpalkovic deleted the valentin/upgrade-svelte-check-in-svelte-ts-sandbox branch May 8, 2023 07:58
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

Successfully merging this pull request may close these issues.

None yet

3 participants