fastify / fastify/fastify-vite
Cannot `npm install` without `--force` in `htmx-kitchensink` starter
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 103
- Avg merge
- 6h 54m
- Merged PRs (30d)
- 7
Description
### Prerequisites
- [x] I have written a descriptive issue title
- [x] I have searched existing issues to ensure the bug has not already been reported
### Fastify version
5.2.1
### Plugin version
^7.0.1
### Node.js version
22.x
### Operating system
macOS
### Operating system version (i.e. 20.04, 11.3, 10)
15.1
### Description
It is currently not possiblt to `npm install` without `--force` in `htmx-kitchensink` starter (and presumably in `htmx-base` and `htmx-base-ts`) as well.
`npm install` fails with:
```
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: htmx-kitchensink@undefined
npm error Found: @kitajs/html@3.1.2
npm error node_modules/@kitajs/html
npm error @kitajs/html@"^3.1.2" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @kitajs/html@"^4.2.5" from @kitajs/ts-html-plugin@4.1.1
npm error node_modules/@kitajs/ts-html-plugin
npm error peer @kitajs/ts-html-plugin@">=1.3.3" from @kitajs/html@3.1.2
npm error node_modules/@kitajs/html
npm error @kitajs/html@"^3.1.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
```
I'm guessing that the issue lies within `@kitajs/html` which requires `@kitajs/ts-html-plugin@>=1.3.3` and therefore a `4.x` version of `@kitajs/ts-html`
### Link to code that reproduces the bug
https://github.com/janmonschke/htmx-kitchensink-mre
### Expected Behavior
`npm install` correctly installs the dependencies
Contributor guide
Assessment
This issue has not been assessed yet.