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.
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 messageThis is because
@hono/node-server
uses imports fromhono
(e.g. here) without declaring it as either a dependency or a peer dependency.A possible workaround at the moment is to set
in your
.yarnrc.yml