You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, given that koa is also needed when using this package, I somewhat feel like it's a good idea to put it in peerDependencies, just in case? I stumbled upon this error where koa dependency inside this part can't be found:
I am using Yarn 3.6.4 with nodeLinker: pnpm with rather strict setup, so a package needs to be specified explicitly otherwise it can't be "linked". So in this case, since koa is neither added as dependencies or peerDependencies, Yarn can't resolve it, hence making the declare module "koa" not affecting the actual application.
I propose to add this:
"peerDependencies": {
"koa": "^2.14.1"
}
into package.json, so that stricter package managers can pick the module up from inside node_modules. Let me know what you think. Thanks!
Checklist
I have searched through GitHub issues for similar issues.
I have completely read through the README and documentation.
The text was updated successfully, but these errors were encountered:
## Description
Fix#155 and #157
## Checklist
- [x] I have ensured my pull request is not behind the main or master
branch of the original repository.
- [x] I have rebased all commits where necessary so that reviewing this
pull request can be done without having to merge it first.
- [x] I have written a commit message that passes commitlint linting.
- [x] I have ensured that my code changes pass linting tests.
- [x] I have ensured that my code changes pass unit tests.
- [x] I have described my pull request and the reasons for code changes
along with context if necessary.
Describe the feature
Currently,
koa
is listed asdevDependencies
here (as it should).bodyparser/package.json
Line 59 in 664cd7c
However, given that
koa
is also needed when using this package, I somewhat feel like it's a good idea to put it inpeerDependencies
, just in case? I stumbled upon this error wherekoa
dependency inside this part can't be found:bodyparser/src/body-parser.ts
Line 2 in 664cd7c
I am using Yarn 3.6.4 with
nodeLinker: pnpm
with rather strict setup, so a package needs to be specified explicitly otherwise it can't be "linked". So in this case, sincekoa
is neither added asdependencies
orpeerDependencies
, Yarn can't resolve it, hence making thedeclare module "koa"
not affecting the actual application.I propose to add this:
into
package.json
, so that stricter package managers can pick the module up from insidenode_modules
. Let me know what you think. Thanks!Checklist
The text was updated successfully, but these errors were encountered: