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

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

Open
2 tasks done
janmonschke opened this issue Feb 20, 2025 · 0 comments
Open
2 tasks done

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

janmonschke opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@janmonschke
Copy link
Contributor

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

@galvez galvez self-assigned this Mar 31, 2025
@galvez galvez added the bug Something isn't working label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants