Skip to content

Commit 90d1519

Browse files
Merge pull request #2569 from d0z4rt/patch-1
docs(faq): add pnpm solution for `"Cannot resolve dependency" error`
2 parents 001a208 + 91d2078 commit 90d1519

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/faq/errors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ This likely happens when your project end up loading two Node modules of the pac
5757
Solutions:
5858
5959
- For **Yarn** Workspaces, use the [nohoist feature](https://classic.yarnpkg.com/blog/2018/02/15/nohoist) to prevent hoisting the package `@nestjs/core`.
60+
- For **pnpm** Workspaces, set `@nestjs/core` as a peerDependencies in your other module and `"dependenciesMeta": {{ '{' }}"other-module-name": {{ '{' }}"injected": true{{ '}}' }}` in the app package.json where the module is imported. see: [dependenciesmetainjected](https://pnpm.io/package_json#dependenciesmetainjected)
6061
6162
#### "Circular dependency" error
6263

0 commit comments

Comments
 (0)