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

hono is not declared as peer dependency #191

Closed
marvinruder opened this issue Aug 26, 2024 · 0 comments · Fixed by #192
Closed

hono is not declared as peer dependency #191

marvinruder opened this issue Aug 26, 2024 · 0 comments · Fixed by #192

Comments

@marvinruder
Copy link
Contributor

Given a Hono project under Node.js using the Yarn package manager with Yarn PnP enabled, when attempting to import @hono/node-server, then the import fails with the message

  The Yarn Plug'n'Play manifest forbids importing "hono" here because it's not listed as a
  dependency of this package:

This is because @hono/node-server uses imports from hono (e.g. here) without declaring it as either a dependency or a peer dependency.

A possible workaround at the moment is to set

packageExtensions: 
  "@hono/node-server@*": 
    peerDependencies: 
      "hono": "*"

in your .yarnrc.yml

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 a pull request may close this issue.

2 participants
@marvinruder and others