Project to show bun install issue in eslint-plugin-svelte
because of dependency version problem.
Project created with the standard svelte@latest
CLI:
$ bun create svelte@latest
create-svelte version 6.0.9
┌ Welcome to SvelteKit!
│
◇ Where should we create your project?
│ (hit Enter to use current directory)
│
◇ Directory not empty. Continue?
│ Yes
│
◇ Which Svelte app template?
│ Library project
│
◇ Add type checking with TypeScript?
│ Yes, using TypeScript syntax
│
◇ Select additional options (use arrow keys/space bar)
│ Add ESLint for code linting, Add Prettier for code formatting, Try the Svelte 5 preview (unstable!)
│
└ Your project is ready!
✔ Typescript
Inside Svelte components, use <script lang="ts">
✔ ESLint
https://github.com/sveltejs/eslint-plugin-svelte
✔ Prettier
https://prettier.io/docs/en/options.html
https://github.com/sveltejs/prettier-plugin-svelte#options
Install community-maintained integrations:
https://github.com/svelte-add/svelte-add
Next steps:
1: bun install
Following the next steps (installation) fails with the following error:
$ bun install
bun install v1.0.26 (c75e768a)
warn: incorrect peer dependency "[email protected]"
error: No version matching ">=0.34.0-next.12 <1.0.0" found for specifier "svelte-eslint-parser" (but package exists)
Switch to the fix
branch and see the suggested resolution (PR pending) which successfully installs with bun
:
$ git checkout fix
$ bun install
bun install v1.0.26 (c75e768a)
warn: incorrect peer dependency "[email protected]"
+ @sveltejs/[email protected]
+ @sveltejs/[email protected]
+ @sveltejs/[email protected]
+ @sveltejs/[email protected]
+ @types/[email protected]
+ @typescript-eslint/[email protected]
+ @typescript-eslint/[email protected]
+ [email protected]
+ [email protected]
+ eslint-plugin-svelte@git+ssh://github.com/RobinKnipe/eslint-plugin-svelte#5d72c27ad81b12c471c8f84ea1bb685f1677c636
+ [email protected]
+ [email protected]
+ [email protected] (v0.2.7 available)
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
warn: @sveltejs/kit's postinstall script took 727.4ms
230 packages installed [4.16s]