Skip to content

Cannot npm install without --force in htmx-kitchensink starter #198

Open
@janmonschke

Description

@janmonschke

Prerequisites

  • I have written a descriptive issue title
  • 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/[email protected]
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/[email protected]
npm error node_modules/@kitajs/ts-html-plugin
npm error   peer @kitajs/ts-html-plugin@">=1.3.3" from @kitajs/[email protected]
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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions